Skip to content

Commit 28fc9a0

Browse files
committed
just don't look for external reference assemblies at all...
why is this so hard and undocumented
1 parent 0d6bfff commit 28fc9a0

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

KSPCommon.props

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,18 @@
104104
<DebugType>portable</DebugType>
105105
</PropertyGroup>
106106

107+
<!-- Prevent the compiler from acquiring or referencing any external reference assemblies -->
108+
<PropertyGroup>
109+
<!-- Do not download the .NET Framework Target Pack NuGet package automatically -->
110+
<DisableTransitiveFrameworkReferenceDownloads>true</DisableTransitiveFrameworkReferenceDownloads>
111+
<!-- Instruct the compiler to not automatically reference mscorlib -->
112+
<NoStandardLib>true</NoStandardLib>
113+
<!-- Prevent the GetReferenceAssemblyPaths task in Microsoft.Common.CurrentVersion.targets
114+
from attempting to locate an external copy of the reference assemblies. -->
115+
<AutomaticallyUseReferenceAssemblyPackages>false</AutomaticallyUseReferenceAssemblyPackages>
116+
<FrameworkPathOverride>$(ManagedPath)</FrameworkPathOverride>
117+
</PropertyGroup>
118+
107119
<!--Import references-->
108120
<ItemGroup>
109121
<Reference Include="$(ManagedPath)\System.dll">

0 commit comments

Comments
 (0)