Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

ProjectReference not getting included in the packed nuget

$
0
0

I am new to the C# and nuget world.

I have the issue with https://www.nuget.org/packages/Cumulocity.SDK.Client . Cumulocity.SDK.Client internally has a ProjectReference to Cometd.NetStandard.csproj . And I want to pack and publish the Cumulocity.SDK.Client nuget in such a way that it contains the .dll for Cometd.NetStandard and doesn't search Cometd.NetStandard as nuget dependency after publishing it to nuget repository.Below is the link and screenshots to understand the issue -

The undesired current behaviour - https://www.nuget.org/packages/Cumulocity.SDK.Client/1006.6.1 . The dependencies [screenshot][1] for this shows cometd.NetStandard as a dependency. So when someone tries to download this version of Cumulocity.SDK.Client then they are not able to do it.

The desired old behaviour - https://www.nuget.org/packages/Cumulocity.SDK.Client/0.1.1 . The dependencies [screenshot][2] for this version of nuget shows no dependencies and downloads with no issues and the nuget works fine when there is any usage of cometd.NetStandard within the code then also it works with no issues.

The repository where you find the projects is https://bitbucket.org/m2m/cumulocity-sdk-cs/src/master/ and these are the 2 projects i have have this issue with https://bitbucket.org/m2m/cumulocity-sdk-cs/src/master/REST-SDK/src/ . You can download the projects from these repositories and suggest me how i should pack and publish to get the desired behaviour.

You will be able to help me only after you download this code and understand the issue.I have tried using below command with some variations to pack the nuget , I am expecting exact dotnet pack command and(or) change in .csproj file to get the desired behaviour of nuget.

dotnet pack Cumulocity.SDK.Client.csproj --include-symbols --configuration Release --force --include-source

Thanks in Advance.[1]: https://i.stack.imgur.com/AcAC8.png[2]: https://i.stack.imgur.com/0DZHP.png


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>