netcore csproj patcher not updating version #

Chris Mcgrath's Avatar

Chris Mcgrath

07 Nov, 2017 05:48 PM

I have a solution that is configured the same as all of my other .net core projects but it refuses to update my csproj files with the CI build number thus producing undeployable nuget packages as nuget needs the package version to be incremented which i am generating from the patched csproj files

build log:

Build started
msbuild -version
Microsoft (R) Build Engine version for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved. --version
git clone -q --branch=master C:\projects\logging
git checkout -qf 2351d37141f153c9bc24bcdd32a03e882e8c3a70
Running Install scripts
nuget sources update -Name -Source
Package source "" was successfully updated.
Patching .NET Core .csproj files
dotnet build /property:IncludeSymbols=true
Microsoft (R) Build Engine version for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
  DigitalParadox.Logging -> C:\projects\logging\src\DigitalParadox.Logging\bin\Release\netstandard2.0\DigitalParadox.Logging.dll
  Successfully created package 'C:\projects\logging\src\DigitalParadox.Logging\bin\Release\DigitalParadox.Logging.1.0.0.nupkg'.
  Successfully created package 'C:\projects\logging\src\DigitalParadox.Logging\bin\Release\DigitalParadox.Logging.1.0.0.symbols.nupkg'.
  DigitalParadox.Logging.Serilog -> C:\projects\logging\src\DigitalParadox.Logging.Serilog\bin\Release\netstandard2.0\DigitalParadox.Logging.Serilog.dll
  Successfully created package 'C:\projects\logging\src\DigitalParadox.Logging.Serilog\bin\Release\DigitalParadox.Logging.Serilog.1.0.0.nupkg'.
  Successfully created package 'C:\projects\logging\src\DigitalParadox.Logging.Serilog\bin\Release\DigitalParadox.Logging.Serilog.1.0.0.symbols.nupkg'.
Build succeeded.
    0 Warning(s)
    0 Error(s)
Time Elapsed 00:00:06.73
Discovering tests...OK
Collecting artifacts...
Found artifact 'src\DigitalParadox.Logging\bin\Release\DigitalParadox.Logging.1.0.0.nupkg' matching 'src**.nupkg' path
Found artifact 'src\DigitalParadox.Logging\bin\Release\DigitalParadox.Logging.1.0.0.symbols.nupkg' matching 'src**.nupkg' path
Found artifact 'src\DigitalParadox.Logging.Serilog\bin\Release\DigitalParadox.Logging.Serilog.1.0.0.nupkg' matching 'src**.nupkg' path
Found artifact 'src\DigitalParadox.Logging.Serilog\bin\Release\DigitalParadox.Logging.Serilog.1.0.0.symbols.nupkg' matching 'src**.nupkg' path
Uploading artifacts...
[1/4] src\DigitalParadox.Logging\bin\Release\DigitalParadox.Logging.1.0.0.nupkg (3,564 bytes)...100%
[2/4] src\DigitalParadox.Logging\bin\Release\DigitalParadox.Logging.1.0.0.symbols.nupkg (3,881 bytes)...100%
[3/4] src\DigitalParadox.Logging.Serilog\bin\Release\DigitalParadox.Logging.Serilog.1.0.0.nupkg (4,667 bytes)...100%
[4/4] src\DigitalParadox.Logging.Serilog\bin\Release\DigitalParadox.Logging.Serilog.1.0.0.symbols.nupkg (5,440 bytes)...100%
Build success
appveyor yaml
version: 1.1.{build}
image: Visual Studio 2017
configuration: Release
platform: Any CPU
- cmd: >-
    msbuild -version

dotnet --version

dotnet_csproj: patch: true file: '*.csproj' version: '{version}' package_version: '{version}' assembly_version: '{version}' file_version: '{version}' informational_version: '{version}' install: - cmd: nuget sources update -Name -Source nuget: account_feed: true project_feed: true disable_publish_on_pr: true build_script: - ps: dotnet build /property:IncludeSymbols=true artifacts: - path: src//*.nupkg name: nupkg
  1. Support Staff 1 Posted by Ilya Finkelshte... on 07 Nov, 2017 06:00 PM

    Ilya Finkelshteyn's Avatar

    As said on GitHub, use **\*.csproj pattern. UI settings do not apply if you have YAML (details)

  2. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:21 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac