aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

Is there any way to configure "compileExclude" or "exclude" for a target framework in project.json

Open nhathongly opened this issue 10 years ago • 3 comments

My project has some target frameworks, but there are some files that can't be built for CoreCLR. So I want to exclude those files from compilation once the target is dotnet5.5 or dnxcore50. Is there is any to accomplish it. Adding

"buildOptions": { "compile": { "exclude": "XmlConfiguration/*.*" } } to dotnet5.5 and dnxcore50 seems not working

nhathongly avatar May 12 '16 08:05 nhathongly

It's not supported

davidfowl avatar May 12 '16 08:05 davidfowl

You can probably #ifdef out the entire file content.

moozzyk avatar May 12 '16 16:05 moozzyk

This issue is being closed because it has not been updated in 3 months.

We apologize if this causes any inconvenience. We ask that if you are still encountering this issue, please log a new issue with updated information and we will investigate.

aspnet-hello avatar Dec 31 '17 05:12 aspnet-hello