-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve RuntimeFrameworkVersion from version of Microsoft.NETCore.App…
…, not TFM Workaround dotnet/sdk#686 Also, fix casing of the serviceable assembly attribute
- Loading branch information
1 parent
4b56eca
commit f53b7c0
Showing
4 changed files
with
37 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!-- | ||
WARNING: These targets are intended for building Microsoft's ASP.NET Core repos, and is not intended | ||
for use outside of Microsoft. | ||
This file is dedicated to working around issues in Microsoft.NET.Sdk | ||
--> | ||
<Project ToolsVersion="15.0"> | ||
<!-- workaround https://github.com/dotnet/sdk/issues/686 --> | ||
<Target Name="SetRuntimeFrameworkVersionToPackageVersion" | ||
Condition="'$(OutputType)'=='Exe' AND '$(TargetFrameworkIdentifier)'=='.NETCoreApp'" | ||
DependsOnTargets="_DefaultMicrosoftNETPlatformLibrary" | ||
BeforeTargets="GenerateBuildRuntimeConfigurationFiles"> | ||
|
||
<ResolvePackageDependencies | ||
ProjectPath="$(MSBuildProjectFullPath)" | ||
ProjectAssetsFile="$(ProjectAssetsFile)" | ||
ProjectLanguage="$(Language)"> | ||
|
||
<Output TaskParameter="PackageDefinitions" ItemName="_PackageDefinitions" /> | ||
</ResolvePackageDependencies> | ||
|
||
<ItemGroup> | ||
<_FilteredDefinitions Remove="@(_FilteredDefinitions)" /> | ||
<_FilteredDefinitions Include="@(_PackageDefinitions)" Condition="'%(_PackageDefinitions.Name)'=='$(MicrosoftNETPlatformLibrary)'" /> | ||
</ItemGroup> | ||
|
||
<PropertyGroup Condition="'@(_FilteredDefinitions->Count())' == 1"> | ||
<_ResolvedNetCoreAppVersion>@(_FilteredDefinitions -> '%(Version)')</_ResolvedNetCoreAppVersion> | ||
<RuntimeFrameworkVersion Condition="'$(_ResolvedNetCoreAppVersion)'!=''">$(_ResolvedNetCoreAppVersion)</RuntimeFrameworkVersion> | ||
</PropertyGroup> | ||
|
||
<Message Importance="normal" Text="[$(TargetFramework)] resolved RuntimeFrameworkVersion to '$(RuntimeFrameworkVersion)'" /> | ||
</Target> | ||
<!-- end workaround --> | ||
</Project> |
This file was deleted.
Oops, something went wrong.