problems when change to VS2019 project file layout

Matthias Gerloff's Avatar

Matthias Gerloff

21 Oct, 2020 07:57 PM

Hello,

I try to change my c# nuget package to the new visual studio 2019 project layout.
Twpo problems arise
1. The build version is not patched to the version ot the build. Altought I have enabled the patching of the csproj files.
2. I created and publishes a nuget package for every assembly in the solution. I want this to restict to only on, but there seems not to be an option in the settings.

Thanks for looking into this.
Matthias

  1. Support Staff 1 Posted by Feodor Fitsner on 21 Oct, 2020 09:16 PM

    Feodor Fitsner's Avatar

    Hi Matthias,

    Could you drop a link to a build please?

  2. 2 Posted by matthias on 22 Oct, 2020 06:30 AM

    matthias's Avatar

    Hello Feodor,

     

    sorry – forgot to include that.

    https://ci.appveyor.com/project/Calteo/toolbox-commandline/builds/35883233

     

    Regards,

    Matthias

     

    Von: Feodor Fitsner <[email blocked]>
    Gesendet: Mittwoch, 21. Oktober 2020 23:17
    An: [email blocked]
    Betreff: Re: problems when change to VS2019 project file layout [Problems #28442]

  3. Support Staff 3 Posted by Feodor Fitsner on 23 Oct, 2020 04:37 PM

    Feodor Fitsner's Avatar

    Looking into that.

  4. Support Staff 4 Posted by Feodor Fitsner on 23 Oct, 2020 06:17 PM

    Feodor Fitsner's Avatar

    OK, so the issue is that patching algorithm is looking for special properties inside .csproj files, like <Version>, so they can be pathed. It's not adding them if they don't exist. Look at this build: as soon as I added element it started working.

    Full list of elements that can be patched:

    Version
    VersionPrefix
    PackageVersion
    AssemblyVersion
    FileVersion
    InformationalVersion
    
  5. 5 Posted by matthias on 27 Oct, 2020 08:18 AM

    matthias's Avatar

    Any ideas how to turn off the nuget publishing for certain projects?
    So far all projects in the solution get published, which is not indented for the test projects. Inside the solution the nuget publishing is turned off for these projects, but they gets published anyway.

     

    Thanks,
    Matthias

     

    Von: Feodor Fitsner <[email blocked]>
    Gesendet: Freitag, 23. Oktober 2020 20:18
    An: [email blocked]
    Betreff: Re: problems when change to VS2019 project file layout [Problems #28442]

  6. Support Staff 6 Posted by Feodor Fitsner on 27 Oct, 2020 11:03 PM

    Feodor Fitsner's Avatar

    You can provide your own dotnet pack commands instead of automatic packaging, say in after_build script.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? 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