Skip to content

Commit

Permalink
Fixed failure ArtifactCollector collecting nuget package artifacts. #80
Browse files Browse the repository at this point in the history
  • Loading branch information
kekyo committed Jun 19, 2020
1 parent 1080a52 commit 7c2441f
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 8 deletions.
Binary file modified ArtifactCollector/ArtifactCollector.exe
Binary file not shown.
1 change: 1 addition & 0 deletions ArtifactCollector/Collectors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ public static async Task BuildCsprojAndCollectArtifactsAsync(
"pack",
"--no-build",
"--configuration", "Release",
"-p:Platform=", // BUG WORKAROUND: dotnet pack is misunderstanding Platform variable sets to "Any CPU", so have to set blank.
$"-p:BuildIdentifier={buildIdentifier}",
$"\"{path}\"");
Program.WriteLine(result.Item2);
Expand Down
2 changes: 1 addition & 1 deletion IL2C.Core/IL2C.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net45;netstandard2.0;netcoreapp2.0</TargetFrameworks>
<TargetFrameworks>net45;netstandard2.0;netstandard2.1;netcoreapp2.0;netcoreapp3.0</TargetFrameworks>
<OutputType>Library</OutputType>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
Expand Down
8 changes: 7 additions & 1 deletion IL2C.Interop/IL2C.Interop.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net40;net45;netstandard1.0;netstandard2.0;netcoreapp2.0</TargetFrameworks>
<TargetFrameworks>net40-client;net45;netstandard1.0;netstandard2.0;netstandard2.1;netcoreapp2.0;netcoreapp3.0</TargetFrameworks>
<OutputType>Library</OutputType>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
Expand Down Expand Up @@ -33,6 +33,12 @@
<AllowedOutputExtensionsInPackageBuildOutputFolder>.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetFramework)' == 'net40-client'">
<TargetFrameworkIdentifier>.NETFramework</TargetFrameworkIdentifier>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CenterCLR.RelaxVersioner" version="1.0.5" PrivateAssets="All" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion IL2C.Runtime/IL2C.Runtime.msvc.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<projectUrl>https://github.com/kekyo/IL2C.git</projectUrl>
<description>A translator implementation of .NET intermediate language to C language.</description>
<copyright>Copyright (c) 2017-2019 Kouji Matsui</copyright>
<tags>il2c cil msil translate transpile aot ecma335 c c++ win32 uefi wdm multi-platform systems-programming</tags>
<tags>il2c native cil msil translate transpile aot ecma335 c c++ win32 uefi wdm multi-platform systems-programming</tags>
<repository type="git" url="https://github.com/kekyo/IL2C.git" />
<dependencies>
<dependency id="IL2C.Runtime" version="$version$" />
Expand Down
2 changes: 1 addition & 1 deletion IL2C.Runtime/IL2C.Runtime.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<projectUrl>https://github.com/kekyo/IL2C.git</projectUrl>
<description>A translator implementation of .NET intermediate language to C language.</description>
<copyright>Copyright (c) 2017-2019 Kouji Matsui</copyright>
<tags>il2c cil msil translate transpile aot ecma335 c c++ win32 uefi wdm multi-platform systems-programming</tags>
<tags>il2c native cil msil translate transpile aot ecma335 c c++ win32 uefi wdm multi-platform systems-programming</tags>
<repository type="git" url="https://github.com/kekyo/IL2C.git" />
</metadata>
<files>
Expand Down
11 changes: 8 additions & 3 deletions pack.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,19 @@
setlocal enabledelayedexpansion

set TOOLCHAINPATH=%~dp0toolchain\gcc4
set CMAKE_ROOT=%TOOLCHAINPATH%\share\cmake-3.12
set CMAKE_ROOT=%TOOLCHAINPATH%\share\cmake-3.17

if not exist %TOOLCHAINPATH% (
echo Native toolchain not found.
echo Execute "init-tools.bat" if build runtime at first time.
exit /b 1
)

set BuildIdentifier=%1
if "%BuildIdentifier%" == "" (
set BuildIdentifier=manually
)

rem if not exist ArtifactCollector\ArtifactCollector.exe (
rem echo ArtifactCollector not found.
rem echo Build il2c.sln first.
Expand All @@ -28,7 +33,7 @@ echo ///////////////////////////////////////////////
echo // Build entire IL2C.pack.sln
echo.

dotnet build --configuration Release -p:BuildIdentifier="%1" il2c.pack.sln
dotnet build --configuration Release -p:Platform="Any CPU" -p:BuildIdentifier="%BuildIdentifier%" il2c.pack.sln

rem =========================================

Expand All @@ -37,7 +42,7 @@ echo ///////////////////////////////////////////////
echo // Collects artifacts.
echo.

ArtifactCollector\ArtifactCollector.exe . .\artifacts "%1" IL2C.Interop IL2C.Core IL2C.Tasks IL2C.Runtime
ArtifactCollector\ArtifactCollector.exe . .\artifacts "%BuildIdentifier%" IL2C.Interop IL2C.Core IL2C.Tasks IL2C.Runtime

rem =========================================

Expand Down
2 changes: 1 addition & 1 deletion pack.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

VERSION=0.4.61
VERSION=0.4.100

rm -rf artifacts
mkdir artifacts
Expand Down

0 comments on commit 7c2441f

Please sign in to comment.