You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
15.3 preview 3: adding source files via Solution Explorer results with a new ItemGroup in project file #3265
The SDK has a glob for None and that's picking up the fs files. @brettfo fixed this recently (#3212) by making the SDK set <EnableDefaultNoneItems>false</EnableDefaultNoneItems> for F# but I guess that change hasn't made it into this build.
Also looking at the screenshot, the project doesn't have the dependencies node (and a bunch of other stuff is likely broken) - that needs this fix in the SDK - dotnet/sdk#1350. i.e you need the latest 2.0 SDK to make that work
Activity
saul commentedon Jun 27, 2017
It's weird that adding source files also adds them as <None> instead of <Compile>
enricosada commentedon Jun 27, 2017
@davkean @srivatsn any clue?
srivatsn commentedon Jun 27, 2017
The SDK has a glob for None and that's picking up the fs files. @brettfo fixed this recently (#3212) by making the SDK set
<EnableDefaultNoneItems>false</EnableDefaultNoneItems>for F# but I guess that change hasn't made it into this build.dsyme commentedon Jun 27, 2017
@srivatsn Is the workaround to add
explicitly to the project file?
srivatsn commentedon Jun 27, 2017
Yes that should work.
srivatsn commentedon Jun 27, 2017
Also looking at the screenshot, the project doesn't have the dependencies node (and a bunch of other stuff is likely broken) - that needs this fix in the SDK - dotnet/sdk#1350. i.e you need the latest 2.0 SDK to make that work
cartermp commentedon Jun 27, 2017
Closing this out as the issue is fixed. Should be available in preview 4.
dsyme commentedon Jun 27, 2017
@cartermp @srivatsn Great to know, thanks!
cartermp commentedon Jun 27, 2017
Re-opening until we have clarity for Preview 4 - @brettfo can you confirm when this change is inserted into VS?
Just to clarify - the root cause is fixed, but I'm not sure if that change has been inserted or not.
cartermp commentedon Jun 29, 2017
Confirming that this is fixed and inserted.