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

Copy C# files into a .NET Core project on nuget package installation

$
0
0

As an example - I would like a Program.cs file with a few default lines added to it:

class Program{   // ...}

This Program.cs is in a C# project that I pack and upload to DevOps artifacts.

I want to then go to install this package into a new 'console project' and have that project get its Program.cs overwritten by my nuget package version.

This used to be possible in the .NET Framework, but in a .NET Core project, I am struggling to make it work.

How do you go about doing the above?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



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