Skip to content

Commit 7903cf6

Browse files
committed
Do not deploy host dlls when targeting .NET Framework
1 parent 91671d1 commit 7903cf6

4 files changed

Lines changed: 4 additions & 18 deletions

File tree

src/OmniSharp.Http.Driver/OmniSharp.Http.Driver.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<!-- Always run on the latest runtime installed. -->
1212
<RuntimeFrameworkVersion>6.0.0-rc.2.21467.4</RuntimeFrameworkVersion>
1313
<RollForward>LatestMajor</RollForward>
14-
<SkipHostDlls Condition="'$(TargetFramework)' != 'net472'">true</SkipHostDlls>
14+
<SkipHostDlls>true</SkipHostDlls>
1515
</PropertyGroup>
1616

1717
<ItemGroup>

src/OmniSharp.Stdio.Driver/OmniSharp.Stdio.Driver.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<!-- Always run on the latest runtime installed. -->
1212
<RuntimeFrameworkVersion>6.0.0-rc.2.21467.4</RuntimeFrameworkVersion>
1313
<RollForward>LatestMajor</RollForward>
14-
<SkipHostDlls Condition="'$(TargetFramework)' != 'net472'">true</SkipHostDlls>
14+
<SkipHostDlls>true</SkipHostDlls>
1515
</PropertyGroup>
1616

1717
<ItemGroup>

tests/Directory.Build.props

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,6 @@
55
<NoWarn>$(NoWarn);MSB3277</NoWarn>
66
</PropertyGroup>
77

8-
<!--
9-
We want the test projects to use the version of NuGet from the SDK
10-
which we are using for project loading.
11-
-->
12-
<ItemGroup>
13-
<PackageReference Update="NuGet.Common" ExcludeAssets="all" PrivateAssets="all" />
14-
<PackageReference Update="NuGet.Configuration" ExcludeAssets="all" PrivateAssets="all" />
15-
<PackageReference Update="NuGet.DependencyResolver.Core" ExcludeAssets="all" PrivateAssets="all" />
16-
<PackageReference Update="NuGet.Frameworks" ExcludeAssets="all" PrivateAssets="all" />
17-
<PackageReference Update="NuGet.LibraryModel" ExcludeAssets="all" PrivateAssets="all" />
18-
<PackageReference Update="NuGet.Packaging" ExcludeAssets="all" PrivateAssets="all" />
19-
<PackageReference Update="NuGet.ProjectModel" ExcludeAssets="all" PrivateAssets="all" />
20-
<PackageReference Update="NuGet.Protocol" ExcludeAssets="all" PrivateAssets="all" />
21-
<PackageReference Update="NuGet.Versioning" ExcludeAssets="all" PrivateAssets="all" />
22-
</ItemGroup>
23-
248
<!--
259
Because the Roslyn's OmniSharp.ExternalAccess libraries are compiled against .NET Standard 2.0,
2610
we need to reference the .NET Standard 2.0 versions of the Roslyn assemblies. Since our test projects

tests/OmniSharp.MSBuild.Tests/OmniSharp.MSBuild.Tests.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<TargetFrameworks>net10.0;net472</TargetFrameworks>
55
<PlatformTarget>AnyCPU</PlatformTarget>
66
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
7+
8+
<SkipHostDlls>true</SkipHostDlls>
79
</PropertyGroup>
810

911
<ItemGroup>

0 commit comments

Comments
 (0)