.NET Core csproj issues

Kay's Avatar

Kay

23 Dec, 2019 08:54 PM

Hello, I've some problems building NET Core projects:
1a) Presumably XamlAnimatedGif.Wpf.StrongName\XamlAnimatedGif.Wpf.StrongName.csproj is not .NET Core .csproj file, patching skipped
No .NET Core .csproj files found
1b) no NuGet package is created.

2) nuget pack => direktory KsWare.Presentation.Interfaces\bin\Any CPU\Release\ not found
but files are in KsWare.Presentation.Interfaces\bin\Release\
workaround: copy files

Happy Christmas

  1. 1 Posted by Kay on 23 Dec, 2019 10:58 PM

    Kay's Avatar

    workaround for 1ab) found: rewrite csproj
    attached the core csproj which was not recognized
    new 1c) same as 2) "Any CPU" folder expected

    more precise for 1a)
    if the xmlns exists in the file the project is not recognized.
    xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
    but your parser should look for existence of sdk attribute:
    e.g. Sdk="Microsoft.NET.Sdk.WindowsDesktop"

  2. 2 Posted by Kay on 24 Dec, 2019 09:56 AM

    Kay's Avatar

    3) yet another issue with test projects
    dotnet pack "C:\projects\ksware-presentation-converters\src\KsWare.Presentation.Converters.Tests\KsWare.Presentation.Converters.Tests.csproj" --configuration Release --include-symbols --output "C:\Users\appveyor\AppData\Local\Temp\1\o1n8u48prn" --no-build
    failed. ok. but why pack a test project?
    how to configure which project should be packed and which not?

  3. 3 Posted by Kay on 26 Jan, 2020 08:39 AM

    Kay's Avatar

    one month and no answer :-(

  4. Support Staff 4 Posted by Feodor Fitsner on 26 Jan, 2020 10:22 PM

    Feodor Fitsner's Avatar

    Hi Kay,

    Sorry for the delay with reply!

    There is no way to configure which projects should be packaged and which not if automatic packaging is used. However, you can just provide your own command to pack NuGet package and push it to artifacts.

  5. Feodor Fitsner closed this discussion on 03 Apr, 2020 06:47 PM.

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

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