Skip to content

Commit

Permalink
Issue 352 - Can't find Antlr (#353)
Browse files Browse the repository at this point in the history
Run dotnet publish before pack, to get all dependencies in the package.
  • Loading branch information
erikbra authored Dec 11, 2018
1 parent 9cd8135 commit c4dcdc0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ msbuild /t:"Pack" product/roundhouse.tasks/roundhouse.tasks.csproj /p:DropFolde

"`n - Packaging netcoreapp2.1 global tool dotnet-roundhouse`n"

dotnet publish -v q --no-restore product/roundhouse.console -p:Version="$($gitVersion.FullSemVer)" -p:NoPackageAnalysis=true -p:TargetFramework=netcoreapp2.1 -p:Version="$($gitVersion.FullSemVer)" -p:RunILMerge=false -p:Configuration=Build -p:Platform="Any CPU"
dotnet pack -v q --no-restore product/roundhouse.console -p:NoPackageAnalysis=true -p:TargetFramework=netcoreapp2.1 -o $CODEDROP/packages -p:Version="$($gitVersion.FullSemVer)" -p:RunILMerge=false -p:Configuration=Build -p:Platform="Any CPU"


Expand Down
5 changes: 3 additions & 2 deletions product/roundhouse.console/roundhouse.console.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">
<PropertyGroup>
<TargetFrameworks>netcoreapp2.1;net461</TargetFrameworks>
<TargetFramework>net461</TargetFramework>
<TargetFrameworks Condition="'$(TargetFramework)' == ''" >netcoreapp2.1;net461</TargetFrameworks>
<TargetFramework Condition="'$(TargetFramework)' == ''" >net461</TargetFramework>
<CLSCompliant>true</CLSCompliant>
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Expand All @@ -19,6 +19,7 @@
<Version Condition="'$(Version)' == ''">$(VersionPrefix)</Version>
<Version Condition="'$(Version)' == '$(VersionPrefix)' And '$(VersionSuffix)' != ''">$(Version)-$(VersionSuffix)</Version>
<NugetVersion Condition="'$(NugetVersion)' == ''">$(Version)</NugetVersion>
<PackAsTool>true</PackAsTool>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetFramework)' == 'net461'">
Expand Down
2 changes: 1 addition & 1 deletion product/roundhouse.console/roundhouse.tool.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
<iconUrl>https://raw.github.com/chucknorris/roundhouse/master/nuget/RoundhousE_Logo.NuGet.jpg</iconUrl>
</metadata>
<files>
<file src="bin\netcoreapp2.1\**\**" target="tools\netcoreapp2.1\any" />
<file src="bin\netcoreapp2.1\publish\**\**" target="tools\netcoreapp2.1\any" />
</files>
</package>

0 comments on commit c4dcdc0

Please sign in to comment.