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

Contentfile in nuget gets compiled causing build errors

$
0
0

I have a nuget that has a contentfile in it. It is a json file and denoted in the nuspec file when the nuget is packed.

When installing the nuget in a regular wpf app, I get a couple build errors. It appears that Visual Studio is trying to compile the .json file. Wondering if anyone knows what may cause this. As you'll see in the nuspec snippet I have BuildAction=None in the nuspec

ContentFile.json(1,1,1,2): error CS1022: Type or namespace definition, or end-of-file expected

ContentFile.json(4,16,4,26): error CS1001: Identifier expected

ContentFile.json(4,37,4,45): error CS1001: Identifier expected

enter image description here


Viewing all articles
Browse latest Browse all 3067

Trending Articles



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