File tree 5 files changed +16
-9
lines changed
5 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 41
41
<RID >$(RID)-$(PlatformTarget)</RID >
42
42
</PropertyGroup >
43
43
44
- <PropertyGroup Condition =" '$(CPPSHARP_RELEASE)' != 'true'" >
45
- <DebugSymbols >true</DebugSymbols >
46
- <DebugType >full</DebugType >
47
- <Optimize >false</Optimize >
44
+ <PropertyGroup Condition =" '$(Configuration)' == 'Debug'" >
45
+ <DebugSymbols >true</DebugSymbols >
46
+ <DebugType >full</DebugType >
47
+ </PropertyGroup >
48
+ <PropertyGroup Condition =" '$(Configuration)' == 'DebugOpt'" >
49
+ <DebugSymbols >true</DebugSymbols >
50
+ <DebugType >full</DebugType >
51
+ <Optimize >false</Optimize >
52
+ <DefineConstants >DEBUG</DefineConstants >
48
53
</PropertyGroup >
49
54
50
55
<PropertyGroup Condition =" '$(DotNetCmd)' == 'dotnet' AND $(IsWindows)" >
56
61
<Copy SourceFiles =" $(TargetDir)$(TargetFileName)" DestinationFolder =" $(PackageDir)ref\$(GlobalTargetFramework)" Condition =" '$(ProduceReferenceAssembly)' == 'true' AND '$(RID)' == 'win-x64'" />
57
62
<Copy SourceFiles =" $(TargetPath)" DestinationFolder =" $(PackageDir)runtimes\$(RID)\lib\$(GlobalTargetFramework)" />
58
63
</Target >
64
+
65
+ <Target Name =" ValidateCPPSHARPRelease" BeforeTargets =" Build" >
66
+ <Error Condition =" '$(CPPSHARP_RELEASE)' == 'true' AND '$(Configuration)' != 'Release'"
67
+ Text =" Configuration must be 'Release' when CPPSHARP_RELEASE is 'true'." />
68
+ </Target >
59
69
</Project >
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
3
<TargetFramework >netstandard2.1</TargetFramework >
4
- <PlatformTarget >AnyCPU</PlatformTarget >
5
4
<ProduceReferenceAssembly >true</ProduceReferenceAssembly >
6
5
<IsPackable >true</IsPackable >
7
6
</PropertyGroup >
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
3
<TargetFramework >netstandard2.1</TargetFramework >
4
- <PlatformTarget >AnyCPU</PlatformTarget >
5
4
<ProduceReferenceAssembly >true</ProduceReferenceAssembly >
6
5
<IsPackable >true</IsPackable >
7
6
</PropertyGroup >
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public override void Process()
24
24
Write ( $@ "
25
25
<Project Sdk=""Microsoft.NET.Sdk"">
26
26
<PropertyGroup>
27
- <TargetFramework>netstandard2.0 </TargetFramework>
27
+ <TargetFramework>netstandard2.1 </TargetFramework>
28
28
<PlatformTarget>{ ( Context . TargetInfo . PointerWidth == 64 ? "x64" : "x86" ) } </PlatformTarget>
29
29
<OutputPath>{ Options . OutputDir } </OutputPath>
30
30
<DocumentationFile>{ module . LibraryName } .xml</DocumentationFile>
Original file line number Diff line number Diff line change 2
2
<PropertyGroup >
3
3
<LangVersion >7.3</LangVersion >
4
4
<AllowUnsafeBlocks >true</AllowUnsafeBlocks >
5
- <TargetFramework >netstandard2.0</TargetFramework >
6
- <PlatformTarget >AnyCPU</PlatformTarget >
5
+ <TargetFramework >netstandard2.1</TargetFramework >
7
6
<ProduceReferenceAssembly >true</ProduceReferenceAssembly >
8
7
<IsPackable >true</IsPackable >
9
8
</PropertyGroup >
You can’t perform that action at this time.
0 commit comments