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

Override a nuget package reference with a local project reference

$
0
0

I'd like iterate on a nuget package without continuously pushing the package to a nuget feed.

I'm wondering if it's possible to conditionally add a project reference instead of a nuget package reference via a target or props file in csproj files that would allow me to locally debug my nuget package.

In my csproj I would have:

<Reference Include="A">    if(Exists(localOverrides.props) {<HintPath>localOverrides.A.HintPath</HintPath>    } else {<HintPath>..\packages\A.dll</HintPath>    }</Reference>

and localOverrides.props would be a file listed in my .gitignore that developers could add lines to like:

A -> C:\Repos\A\bin\A.dll

Am I on the wrong path? Surely there must be a more sustainable way to quickly iterate and debug a nuget package then creating pre-release packages on every change


Viewing all articles
Browse latest Browse all 3067

Trending Articles



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