Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Exclude *.cs files while publish from VS

$
0
0

Hi,

I published MVC6 (dnx46) project, it pushed all the published files to 'artifacts\bin\MyProject\Release\PublishOutput'. I found it's publishing *.cs files also inside 'approot\src\...' folders. 

How we can prevent the .cs files while publishing.? Should I put below in appsettings.json or there is some other way?

"publishExclude": ["**.user","**.vspscc","**.cs",
  ],

Thanks,

Aniket


Viewing all articles
Browse latest Browse all 9386

Trending Articles



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