Migrate project.json to dotnet.csproj & do build in dotnet container (#488)

This commit is contained in:
Ta-Ching Chen
2018-02-07 21:43:51 +08:00
committed by GitHub
parent c56ed598cb
commit 3c513c7f61
4 changed files with 30 additions and 27 deletions
+6 -3
View File
@@ -1,3 +1,6 @@
dotnet restore
dotnet publish -c Release -o out
docker build -t fission/dotnet-env .
#!/bin/sh
THIS_DIR=$(realpath $(dirname $0))
docker run -v $THIS_DIR:/proj microsoft/dotnet:1.1-sdk sh -c "cd /proj && ./project-build.sh"
+21
View File
@@ -0,0 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp1.0</TargetFramework>
<AssemblyName>fission-dotnet</AssemblyName>
<OutputType>Exe</OutputType>
<PackageId>dotnet</PackageId>
<PackageTargetFallback>$(PackageTargetFallback);netstandard1.3</PackageTargetFallback>
<RuntimeFrameworkVersion>1.1.0</RuntimeFrameworkVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp1.0' ">
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="1.0.3" />
<PackageReference Include="Microsoft.AspNetCore.Owin" Version="1.0.2" />
<PackageReference Include="Nancy" Version="2.0.0-barneyrubble" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="1.3.0-*" />
<PackageReference Include="System.Runtime.Loader" Version="4.0.0-*" />
<PackageReference Include="System.Runtime.Serialization.Json" Version="4.0.2" />
</ItemGroup>
</Project>
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
dotnet restore fission-dotnet.csproj
dotnet publish fission-dotnet.csproj -c Release -o out
-24
View File
@@ -1,24 +0,0 @@
{
"version": "1.0.0-*",
"buildOptions": {
"emitEntryPoint": true,
"outputName": "fission-dotnet"
},
"frameworks": {
"netcoreapp1.0": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0",
"type": "platform"
},
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0",
"Microsoft.AspNetCore.Owin": "1.0.0",
"Nancy": "2.0.0-barneyrubble",
"Microsoft.CodeAnalysis.CSharp": "1.3.0-*",
"System.Runtime.Loader": "4.0.0-*",
"System.Runtime.Serialization.Json": "4.0.2"
},
"imports": "netstandard1.3"
}
}
}