Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotnet test template for f# shouldnt add Program.fs for net tfm #1271

Closed
enricosada opened this issue Oct 6, 2017 · 2 comments
Closed

dotnet test template for f# shouldnt add Program.fs for net tfm #1271

enricosada opened this issue Oct 6, 2017 · 2 comments

Comments

@enricosada
Copy link
Contributor

enricosada commented Oct 6, 2017

The test templates (xunit, mstest) of F# always include a Program.fs, and is needed atm ( ref dotnet/netcorecli-fsc#79 ) for netcoreapp2.0

But that's annoying swithcing to net462 because there the project is a library (by design), and the entrypoint is not needed.

Changes required: add the Program.fs under a Condition of the tfm or runtime (or better another test sdk property, if exists). like

<Compile Include="Program.fs" Condition=" '$(DontRemeberTheProp)' == '.NETCore' " />

/cc @dsyme @cartermp @KevinRansom

@dsyme
Copy link
Contributor

dsyme commented Oct 6, 2017

+1, thanks

@mlorbetske
Copy link
Contributor

Looks like this should be fixed with dotnet/test-templates#22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants