diff options
Diffstat (limited to 'Tizen.Runtime/Tizen.Runtime.Coreclr.csproj')
-rw-r--r-- | Tizen.Runtime/Tizen.Runtime.Coreclr.csproj | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/Tizen.Runtime/Tizen.Runtime.Coreclr.csproj b/Tizen.Runtime/Tizen.Runtime.Coreclr.csproj index 32864ed..6bf5754 100644 --- a/Tizen.Runtime/Tizen.Runtime.Coreclr.csproj +++ b/Tizen.Runtime/Tizen.Runtime.Coreclr.csproj @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<Project InitialTargets="CheckConfig" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<Project ToolsVersion="14.0" InitialTargets="CheckConfig" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> @@ -8,6 +8,15 @@ <AssemblyName>Tizen.Runtime.Coreclr</AssemblyName> </PropertyGroup> + <PropertyGroup> + <TargetFrameworkIdentifier>.NETStandard</TargetFrameworkIdentifier> + <TargetFrameworkVersion>v1.5</TargetFrameworkVersion> + <NuGetTargetMoniker>.NETStandard,Version=v1.5</NuGetTargetMoniker> + <AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences> + <NoStdLib>true</NoStdLib> + <NoWarn>$(NoWarn);1701;1702</NoWarn> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)' == 'Debug'"> <DebugSymbols>true</DebugSymbols> <DebugType>full</DebugType> @@ -44,9 +53,25 @@ <Message Text="MSBuildProjectDirectory = $(MSBuildProjectDirectory)"/> </Target> - <Import Project="$(MSBuildProjectDirectory)/Tizen.CoreFX.Ref.Targets" /> + <ItemGroup> + <None Include="Tizen.Runtime.Coreclr.project.json" /> + </ItemGroup> + <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> + <PropertyGroup> + <!-- https://github.com/dotnet/corefxlab/tree/master/samples/NetCoreSample and + https://docs.microsoft.com/en-us/dotnet/articles/core/tutorials/target-dotnetcore-with-msbuild + --> + <!-- We don't use any of MSBuild's resolution logic for resolving the framework, so just set these two + properties to any folder that exists to skip the GetReferenceAssemblyPaths task (not target) and + to prevent it from outputting a warning (MSB3644). + --> + <_TargetFrameworkDirectories>$(MSBuildThisFileDirectory)</_TargetFrameworkDirectories> + <_FullFrameworkReferenceAssemblyPaths>$(MSBuildThisFileDirectory)</_FullFrameworkReferenceAssemblyPaths> + <AutoUnifyAssemblyReferences>true</AutoUnifyAssemblyReferences> + </PropertyGroup> + <Target Name="BeforeCompile"> <ItemGroup> <AssemblyAttributes Include="DefaultConfigAttribute" Condition=" $(PreloadPath) != '' "> |