提交 d65c1308 编写于 作者: A Andy Gocke

Merge pull request #6004 from agocke/UsePortable50

Switch our CoreCLR projects to be ".NETPortable,v5.0"
......@@ -49,30 +49,6 @@
</When>
</Choose>
<!-- Work around mono + msbuild bug https://github.com/Microsoft/msbuild/issues/191 -->
<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == 'DNXCore' and '$(OS)' != 'Windows_NT'">
<!-- Manually set assembly search paths so they don't get mangled later -->
<AssemblySearchPaths Condition=" '$(AssemblySearchPaths)' == ''">
{RawFileName};
$(OutDir)
</AssemblySearchPaths>
<RemoveAssemblyFoldersIfNoTargetFramework>false</RemoveAssemblyFoldersIfNoTargetFramework>
</PropertyGroup>
<!-- Work around issue in dotnet/roslyn issue #5213
Since MSBuild wants a reference assembly location and DNXCore doesn't have one,
trick MSBuild into using the .NETPortable,v5.0 reference assembly path which happens
to have the same set of reference assemblies as DNXCore (i.e., none). -->
<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == 'DNXCore'">
<_TargetFrameworkDirectories>$([System.String]::Join(";", $([Microsoft.Build.Utilities.ToolLocationHelper]::GetPathToReferenceAssemblies(".NETPortable", "v5.0", ""))))</_TargetFrameworkDirectories>
<_FullFrameworkReferenceAssemblyPaths>$(_TargetFrameworkDirectories)</_FullFrameworkReferenceAssemblyPaths>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == 'DNXCore'">
<BaseNuGetRuntimeIdentifier Condition="'$(OS)' == 'Windows_NT'">win7</BaseNuGetRuntimeIdentifier>
<BaseNuGetRuntimeIdentifier Condition="'$(OS)' == 'Unix'">ubuntu.14.04</BaseNuGetRuntimeIdentifier>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.VisualBasic.targets"
Condition="'$(ProjectLanguage)' == 'VB' And '$(TargetFrameworkIdentifier)' == '.NETPortable'"/>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets"
......@@ -89,6 +65,15 @@
<Import Project="$(MSBuildExtensionsPath)\Microsoft\NuGet\Microsoft.NuGet.targets"
Condition="'$(OS)' != 'Windows_NT'" />
<PropertyGroup Condition="
'$(TargetFrameworkIdentifier)' == '.NETPortable' AND
'$(TargetFrameworkVersion)' == 'v5.0' AND
'$(OutputType)' == 'Exe'">
<NuGetTargetMoniker>DNXCore,Version=v5.0</NuGetTargetMoniker>
<BaseNuGetRuntimeIdentifier Condition="'$(OS)' == 'Windows_NT'">win7</BaseNuGetRuntimeIdentifier>
<BaseNuGetRuntimeIdentifier Condition="'$(OS)' == 'Unix'">ubuntu.14.04</BaseNuGetRuntimeIdentifier>
</PropertyGroup>
<!-- It looks like MSBuild has a bug on *nix where they aggressively
directory separators from '\' to '/', even when the '\'
is being used as an escape character in a define constant in VB.
......
......@@ -205,9 +205,9 @@ set_mono_path()
fi
if [ "$OS_NAME" = "Darwin" ]; then
MONO_TOOLSET_NAME=mono.mac.3
MONO_TOOLSET_NAME=mono.mac.4
elif [ "$OS_NAME" = "Linux" ]; then
MONO_TOOLSET_NAME=mono.linux.3
MONO_TOOLSET_NAME=mono.linux.4
else
echo "Error: Unsupported OS $OS_NAME"
exit 1
......
......@@ -18,8 +18,10 @@
<OutDir>$(OutDir)core-clr\</OutDir>
<RestorePackages>true</RestorePackages>
<AutoGenerateBindingRedirects>True</AutoGenerateBindingRedirects>
<TargetFrameworkIdentifier>DNXCore</TargetFrameworkIdentifier>
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<TargetFrameworkIdentifier>.NETPortable</TargetFrameworkIdentifier>
<TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
<!-- Misspelling, bug in NuGet targets -->
<RuntimeIndentifier>x64</RuntimeIndentifier>
<NuGetRuntimeIdentifier>$(BaseNuGetRuntimeIdentifier)-$(RuntimeIndentifier)</NuGetRuntimeIdentifier>
......
......@@ -18,7 +18,8 @@
<OutDir>$(OutDir)core-clr\</OutDir>
<RestorePackages>true</RestorePackages>
<AutoGenerateBindingRedirects>True</AutoGenerateBindingRedirects>
<TargetFrameworkIdentifier>DNXCore</TargetFrameworkIdentifier>
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<TargetFrameworkIdentifier>.NETPortable</TargetFrameworkIdentifier>
<TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
<!-- Misspelling, bug in NuGet targets -->
<RuntimeIndentifier>x64</RuntimeIndentifier>
......
......@@ -16,7 +16,8 @@
<OutDir>$(OutDir)core-clr\</OutDir>
<RestorePackages>true</RestorePackages>
<AutoGenerateBindingRedirects>True</AutoGenerateBindingRedirects>
<TargetFrameworkIdentifier>DNXCore</TargetFrameworkIdentifier>
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<TargetFrameworkIdentifier>.NETPortable</TargetFrameworkIdentifier>
<TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
<NoStdLib>true</NoStdLib>
</PropertyGroup>
......
......@@ -18,7 +18,8 @@
<OutDir>$(OutDir)core-clr\</OutDir>
<RestorePackages>true</RestorePackages>
<AutoGenerateBindingRedirects>True</AutoGenerateBindingRedirects>
<TargetFrameworkIdentifier>DNXCore</TargetFrameworkIdentifier>
<ProjectTypeGuids>{14182A97-F7F0-4C62-8B27-98AA8AE2109A};{F184B08F-C81C-45F6-A57F-5ABD9991F28F}</ProjectTypeGuids>
<TargetFrameworkIdentifier>.NETPortable</TargetFrameworkIdentifier>
<TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
<NoStdLib>true</NoStdLib>
</PropertyGroup>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册