CsprojToVs2017 icon indicating copy to clipboard operation
CsprojToVs2017 copied to clipboard

Is it possible to leave all cs files in csproj?

Open AlexanderButs opened this issue 6 years ago • 2 comments

First of all THANK YOU for this useful tool. Great job!

In my old csproj file I have all cs files to compile specified. When I migrate csproj to new format all cs files disappear and new implicit logic to include cs files to project is used. Is it possible to leave all cs files in csproj for new format as well? Couldn't find any related issue to this one.

Thanks.

AlexanderButs avatar Oct 24 '19 09:10 AlexanderButs

nope thats not possible, thats how the new format works.

sommmen avatar Jul 15 '20 15:07 sommmen

nope thats not possible, thats how the new format works.

The documentation actually says that this will turn off the implicit items:

<PropertyGroup>
  <EnableDefaultItems>false</EnableDefaultItems>
</PropertyGroup>

Or, if you only want to turn off the implicit Compile items:

<PropertyGroup>
  <EnableDefaultCompileItems>false</EnableDefaultCompileItems>
</PropertyGroup>

SamB avatar Mar 26 '21 16:03 SamB