-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDSPythonNet3.csproj
More file actions
70 lines (65 loc) · 3.11 KB
/
DSPythonNet3.csproj
File metadata and controls
70 lines (65 loc) · 3.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<ProjectGuid>{F1541C2D-80A9-4FE7-8D9E-75A8B9FF3479}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<OutputPath>$(BuildOutput)extra\</OutputPath>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<NoWarn>MSB3539;CS1591;NUnit2005;NUnit2007;CS0618;CS0612;CS0672</NoWarn>
</PropertyGroup>
<ItemGroup>
<InternalsVisibleTo Include="PythonMigrationViewExtension" />
<InternalsVisibleTo Include="DynamoPythonTests" />
<PackageReference Include="DynamoVisualProgramming.Core" Version="$(DynamoPackageVersion)" ExcludeAssets="runtime" />
<PackageReference Include="DynamoVisualProgramming.DynamoServices" Version="$(DynamoPackageVersion)" ExcludeAssets="runtime" />
<PackageReference Include="Python.Included" Version="3.11.6" />
<PackageReference Include="Autodesk.pythonnet" Version="3.1.1-preview*" />
</ItemGroup>
<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Update="Properties\Resources.en-US.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.en-US.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Update="Properties\Resources.en-US.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.en-US.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\DSPythonNet3Wheels\DSPythonNet3Wheels.csproj" />
</ItemGroup>
<!-- Prevent transitive pythonnet from dropping its Python.Runtime.dll while keeping compile assets -->
<ItemGroup>
<PackageReference Update="pythonnet" ExcludeAssets="all" />
</ItemGroup>
<!-- As a safeguard, remove any Python.Runtime coming from NuGet packages from being copied to output -->
<Target Name="RemoveTransitivePythonNetRuntime" AfterTargets="ResolveReferences">
<ItemGroup>
<ReferenceCopyLocalPaths Remove="@(ReferenceCopyLocalPaths)" Condition="'%(ReferenceCopyLocalPaths.FileName)' == 'Python.Runtime' and $([System.String]::Copy('%(ReferenceCopyLocalPaths.Identity)').ToLower().Contains('nuget\\packages\\pythonnet'))" />
</ItemGroup>
</Target>
<ItemGroup>
<None Update="pkg.json">
<TargetPath>..\%(Filename)%(Extension)</TargetPath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<None Include="THIRD_PARTY_NOTICES.txt" Pack="true" PackagePath="\" />
</ItemGroup>
<Target Name="PrepareExtension" AfterTargets="AfterBuild">
<WriteLinesToFile File="$(BuildOutput)pkg.json" Lines="$([System.IO.File]::ReadAllText($(BuildOutput)pkg.json).Replace('$Version$','$(Version)').Replace('$DynamoVersion$','$(DynamoVersion)').Replace('$DllVersion$','$(MS_PACKAGE_VERSION)'))" Overwrite="true" Encoding="Unicode" />
</Target>
</Project>