File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 1414 <PackageReference Include =" DynamoVisualProgramming.Core" Version =" $(DynamoPackageVersion)" ExcludeAssets =" runtime" />
1515 <PackageReference Include =" DynamoVisualProgramming.DynamoServices" Version =" $(DynamoPackageVersion)" ExcludeAssets =" runtime" />
1616 <PackageReference Include =" Python.Included" Version =" 3.11.6" />
17- <PackageReference Include =" Autodesk.pythonnet" Version =" 3.1.0 -preview*" />
17+ <PackageReference Include =" Autodesk.pythonnet" Version =" 3.1.1 -preview*" />
1818 </ItemGroup >
1919 <ItemGroup >
2020 <Compile Update =" Properties\Resources.Designer.cs" >
4141 <ItemGroup >
4242 <ProjectReference Include =" ..\DSPythonNet3Wheels\DSPythonNet3Wheels.csproj" />
4343 </ItemGroup >
44+ <!-- Prevent transitive pythonnet from dropping its Python.Runtime.dll while keeping compile assets -->
45+ <ItemGroup >
46+ <PackageReference Update =" pythonnet" ExcludeAssets =" all" />
47+ </ItemGroup >
48+
49+ <!-- As a safeguard, remove any Python.Runtime coming from NuGet packages from being copied to output -->
50+ <Target Name =" RemoveTransitivePythonNetRuntime" AfterTargets =" ResolveReferences" >
51+ <ItemGroup >
52+ <ReferenceCopyLocalPaths Remove =" @(ReferenceCopyLocalPaths)" Condition =" '%(ReferenceCopyLocalPaths.FileName)' == 'Python.Runtime' and $([System.String]::Copy('%(ReferenceCopyLocalPaths.Identity)').ToLower().Contains('nuget\\packages\\pythonnet'))" />
53+ </ItemGroup >
54+ </Target >
55+
4456 <ItemGroup >
4557 <None Update =" pkg.json" >
4658 <TargetPath >..\%(Filename)%(Extension)</TargetPath >
You can’t perform that action at this time.
0 commit comments