Skip to content

Commit bd0a6ec

Browse files
committed
try something
1 parent a2a8bd1 commit bd0a6ec

2 files changed

Lines changed: 13 additions & 14 deletions

File tree

KSPCommon.props

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,19 @@
111111
<DebugType>portable</DebugType>
112112
</PropertyGroup>
113113

114+
<!-- Prevent the compiler from acquiring or referencing any external reference assemblies -->
115+
<PropertyGroup>
116+
<!-- Do not download the .NET Framework Target Pack NuGet package automatically -->
117+
<DisableTransitiveFrameworkReferenceDownloads>true</DisableTransitiveFrameworkReferenceDownloads>
118+
<!-- Instruct the compiler to not automatically reference mscorlib -->
119+
<NoStandardLib>true</NoStandardLib>
120+
<!-- Prevent the GetReferenceAssemblyPaths task in Microsoft.Common.CurrentVersion.targets
121+
from attempting to locate an external copy of the reference assemblies. -->
122+
<AutomaticallyUseReferenceAssemblyPackages>false</AutomaticallyUseReferenceAssemblyPackages>
123+
<FrameworkPathOverride>$(KSPBTManagedPath)</FrameworkPathOverride>
124+
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
125+
</PropertyGroup>
126+
114127
<ItemGroup>
115128
<Compile Include="$(MSBuildThisFileDirectory)/include/*.cs" Condition="exists('$(MSBuildThisFileDirectory)/include')"/>
116129
</ItemGroup>

KSPCommon.targets

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,6 @@
22
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<Import Condition=" '$(KSPCommonPropsImported)' == '' And Exists('$(MSBuildThisFileDirectory)KSPCommon.props') " Project="$(MSBuildThisFileDirectory)KSPCommon.props"/>
44

5-
<!-- Prevent the compiler from acquiring or referencing any external reference assemblies -->
6-
<PropertyGroup Condition=" '$(KSPBTReferenceSystemAssemblies)' == 'true' ">
7-
<!-- Do not download the .NET Framework Target Pack NuGet package automatically -->
8-
<DisableTransitiveFrameworkReferenceDownloads>true</DisableTransitiveFrameworkReferenceDownloads>
9-
<!-- Instruct the compiler to not automatically reference mscorlib -->
10-
<NoStandardLib>true</NoStandardLib>
11-
<!-- Prevent the GetReferenceAssemblyPaths task in Microsoft.Common.CurrentVersion.targets
12-
from attempting to locate an external copy of the reference assemblies. -->
13-
<AutomaticallyUseReferenceAssemblyPackages>false</AutomaticallyUseReferenceAssemblyPackages>
14-
<FrameworkPathOverride>$(KSPBTManagedPath)</FrameworkPathOverride>
15-
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
16-
</PropertyGroup>
17-
18-
195
<!-- Import references -->
206
<ItemGroup Condition=" '$(KSPBTReferenceSystemAssemblies)' == 'true' ">
217
<Reference Include="$(KSPBTManagedPath)/System.dll">

0 commit comments

Comments
 (0)