Add solution file and make the build script more robust
This commit is contained in:
Родитель
f022f9fbcb
Коммит
3240e8a7d6
|
@ -2,7 +2,9 @@
|
|||
|
||||
S=`dirname $0`
|
||||
P=netfx_loader/
|
||||
O=clr_loader/ffi/dlls/
|
||||
O=$S/clr_loader/ffi/dlls/
|
||||
|
||||
dotnet build $P -r win-x86 -o $O/x86
|
||||
dotnet build $P -r win-x64 -o $O/amd64
|
||||
mkdir -p "$O" || exit -1
|
||||
|
||||
dotnet build "$P" -r win-x86 -o "$O/x86" || exit -1
|
||||
dotnet build "$P" -r win-x64 -o "$O/amd64" || exit -1
|
||||
|
|
|
@ -1,21 +1,22 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net47</TargetFrameworks>
|
||||
<Platforms>x64;x86</Platforms>
|
||||
<RuntimeIdentifiers>win-x86;win-x64</RuntimeIdentifiers>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="NXports" Version="0.2.0-dev" />
|
||||
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0-preview.2">
|
||||
<PackageReference Include="NXports" Version="0.2.0" />
|
||||
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Condition="$(MSBuildRuntimeType) == 'Core'">
|
||||
<Version>1.0.0-preview.2</Version>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Platform)' == 'x86'">
|
||||
<PropertyGroup Condition=" '$(RuntimeIdentifier)' == 'win-x86'">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Platform)' == 'x64'">
|
||||
<PropertyGroup Condition=" '$(RuntimeIdentifier)' == 'win-x64'">
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
|
|
|
@ -0,0 +1,37 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.29418.71
|
||||
MinimumVisualStudioVersion = 15.0.26124.0
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClrLoader", "ClrLoader.csproj", "{DE15B0BD-C44B-44CD-980D-3A975D7AAFA3}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {AEFFF002-4CD2-491F-9BDE-785AF6F1021E}
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|Any CPU = Release|Any CPU
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{DE15B0BD-C44B-44CD-980D-3A975D7AAFA3}.Debug|Any CPU.ActiveCfg = Debug|x64
|
||||
{DE15B0BD-C44B-44CD-980D-3A975D7AAFA3}.Debug|Any CPU.Build.0 = Debug|x64
|
||||
{DE15B0BD-C44B-44CD-980D-3A975D7AAFA3}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{DE15B0BD-C44B-44CD-980D-3A975D7AAFA3}.Debug|x64.Build.0 = Debug|x64
|
||||
{DE15B0BD-C44B-44CD-980D-3A975D7AAFA3}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{DE15B0BD-C44B-44CD-980D-3A975D7AAFA3}.Debug|x86.Build.0 = Debug|x86
|
||||
{DE15B0BD-C44B-44CD-980D-3A975D7AAFA3}.Release|Any CPU.ActiveCfg = Release|x64
|
||||
{DE15B0BD-C44B-44CD-980D-3A975D7AAFA3}.Release|Any CPU.Build.0 = Release|x64
|
||||
{DE15B0BD-C44B-44CD-980D-3A975D7AAFA3}.Release|x64.ActiveCfg = Release|x64
|
||||
{DE15B0BD-C44B-44CD-980D-3A975D7AAFA3}.Release|x64.Build.0 = Release|x64
|
||||
{DE15B0BD-C44B-44CD-980D-3A975D7AAFA3}.Release|x86.ActiveCfg = Release|x86
|
||||
{DE15B0BD-C44B-44CD-980D-3A975D7AAFA3}.Release|x86.Build.0 = Release|x86
|
||||
EndGlobalSection
|
||||
EndGlobal
|
Загрузка…
Ссылка в новой задаче