Skip to content

Commit

Permalink
fixing version replace
Browse files Browse the repository at this point in the history
  • Loading branch information
Highlander Paiva committed May 9, 2019
1 parent 6c2b2a5 commit 2e85e3e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ dotnet_csproj:

build_script:
- msbuild /p:configuration=Release /p:DeployExtension=false /p:ZipPackageCompressionLevel=normal /v:m
- ps: (Get-Content appsettings.json).replace('{{version}}', $env:appveyor_build_version ) | Set-Content appsettings.json
- ps: (Get-Content AspDotnetVueJs.nuspec).replace('{{version}}', $env:appveyor_build_version ) | Set-Content AspDotnetVueJs.nuspec
- nuget pack
#Nuget auto-packaging can also be done cref: https://www.appveyor.com/docs/deployment/nuget/
Expand Down
3 changes: 0 additions & 3 deletions content/AspDotnetVueJs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@
<!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
<Exec Command="node -e &quot;console.log('NPM Installing dependencies...')&quot;" />
<Exec Command="npm install" />
<Exec Command="npm run build -- --prod" />
<Exec Command="node -e &quot;console.log('NPM Installing dependencies...')&quot;" />
<Exec Command="npm install" />
<Exec Command="node -e &quot;console.log('Building in $(Configuration) mode')&quot;" />
<Exec Condition=" '$(Configuration)' == 'Production' " Command="npm run build:prod" />
<Exec Condition=" '$(Configuration)' == 'Test' " Command="npm run build:test" />
Expand Down
2 changes: 1 addition & 1 deletion content/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"App": {
"Title": "ASP.NET VueJs | Template",
"Description": "Template com .NET Core e VueJs",
"Version": "{{version}}",
"Version": "3.0.0",
"TermsOfService": "MIT"
},
"ApiUrl": "http://localhost:5000",
Expand Down

0 comments on commit 2e85e3e

Please sign in to comment.