Skip to content

15.3 preview 3: adding source files via Solution Explorer results with a new ItemGroup in project file #3265

Closed

Description

@vasily-kirichenko

image

Activity

  1. saul commented on Jun 27, 2017

    @saul
    Contributor

    It's weird that adding source files also adds them as <None> instead of <Compile>

  2. enricosada commented on Jun 27, 2017

    @enricosada
    Contributor
  3. srivatsn commented on Jun 27, 2017

    @srivatsn
    Contributor

    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.

  4. dsyme commented on Jun 27, 2017

    @dsyme
    Contributor

    @srivatsn Is the workaround to add

    <EnableDefaultNoneItems>false</EnableDefaultNoneItems> 
    

    explicitly to the project file?

  5. srivatsn commented on Jun 27, 2017

    @srivatsn
    Contributor

    Yes that should work.

  6. srivatsn commented on Jun 27, 2017

    @srivatsn
    Contributor

    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

  7. cartermp commented on Jun 27, 2017

    @cartermp
    Contributor

    Closing this out as the issue is fixed. Should be available in preview 4.

  8. dsyme commented on Jun 27, 2017

    @dsyme
    Contributor

    @cartermp @srivatsn Great to know, thanks!

  9. cartermp commented on Jun 27, 2017

    @cartermp
    Contributor

    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.

  10. cartermp commented on Jun 29, 2017

    @cartermp
    Contributor

    Confirming that this is fixed and inserted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions