-
Notifications
You must be signed in to change notification settings - Fork 123
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
Use new fsproj, replace project.json #700
Comments
Hi @enricosada. Just a few things. I'm interested in using the F# Compiler Service in a similar manner to how it's used in:
To keep it to a basic level I was aiming to create an F# script where I would just but as you can see in the picture there are many modules/libraries that are present in the
Btw I tried to upgrade to latest
giving me the following errors:
I tried the .fsproj file you created but that gives me the following error:
This is not a matter of |
@enricosada Great guide, thanks! |
@gentauro you need to do
|
@ncave you mean with new sdk, by default (it's the same for c#), there is a wildcard include, like <ItemGroup Condition=" '$(EnableDefaultItems)' == 'true' ">
<Compile Include="**/*$(DefaultLanguageSourceExtension)" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" Condition=" '$(EnableDefaultCompileItems)' == 'true' " />
<EmbeddedResource Include="**/*.resx" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" Condition=" '$(EnableDefaultEmbeddedResourceItems)' == 'true' " />
</ItemGroup> If you define |
@enricosada I know, I tried either way, but I'm getting this error if I have more than one .resx in the project:
|
@ncave sry, that was something that was changed in rc3, so i had to say it because it's a common error with the implicit default wildcard includes. Seems something is not implemented yet (empty filename). Just open an issue, i'll fix that :D it' easy now, i'll just publish |
That did the trick, thanks 👍 |
@ncave the resx issue is fixed with the new published FSharp.NET.Sdk v1.0.1 package |
@enricosada Re my comment on other thread - I'd really appreciate help to see this addressed #705 (comment) |
adding more people i know who can help with this issue ( @forki @cloudRoutine @adamchester @neoeinstein ), i can review/hints. @dsyme but if noone step up, i'll do that friday. I'll reply your points on the other issue
project json -> fsproj.
Install is just download a zip, unzip, add to path. Or download install script and run it. with ref of docs official docs https://docs.microsoft.com/en-us/dotnet/articles/core/tools/using-ci-with-cli. i updated the appveyor.yml and travis in this PR dotnet/docs#1556 not yet merged, so use that 😄
use correct version in
it's not a problem, can build current projectcracker with new tooling, same output |
I've been porting over a lot of my projects to the new format and I've found using generators to be the easiest way to deal with them for now due to the lack of editor support.
I have it generate new msbuild15/netcore versions of the fsprojs before each build so it stays synchronized. Once the tooling support comes online we can consolidate into the nice svelte format and multiplatform build, but until then I think this is a pretty good stopgap. |
As a feedback, dont autogenerate fsproj. About editors support, vscode works, by quite some time now. Another is: dont use paket here with new fsproj, there is just one dep (fsharp.core). Can Ben pinned to exact version |
Why not? relying on people to remember to synchronize all of their changes seems much more error prone. |
i trust fsc for errors. it's f#, not that bad fix an compiler error.
let's use it, and improve that so. i want to see why doesnt evaluate project properly.
i am too on windows, editors are not a limiting factor. more there because all work can be done in VS, and just fix api compatibility errors on netcore fsproj
@cloudRoutine i trust automation but adding a tool/script is a tradeoff for maintanance, is not always a good thing. And i dont think is worth do it in this case. In this case, sinchronize changes may be easier done extracting a .prop file (with all defines), shared between old and new fsproj. Cannot extract compile items too because ide doesnt support that in old fsproj afaik. Anyway that leave projects with just source files list pratically, not too bad. Also i want to add proper multi targeting support, because will make things 1000th easier. my feedback is not use that. but i not maintain this project, so np for me |
@enricosada I'll let you handle the upgrade then |
@baronfel Thank you - I am so glad when I see project.json disappear. |
@gentauro new MSBuild is slightly less verbose than old MSBuild and more importantly it's not dead like project.json ;-) |
@gentauro No, I didn't mean that - I just want the churn in base tooling to stop. |
@gentauro there is no future for |
fix binding redirects
Replace current project.json based .net core sdk with new fsproj.
Migraton guide: https://github.com/dotnet/netcorecli-fsc/wiki/How-to-migrate-preview2-projects-to-rc4
PRO:
AssemblyName
prop)Example lib: https://github.com/dotnet/netcorecli-fsc/blob/master/examples/rc4/lib/lib.fsproj
/cc @dsyme @gentauro
The text was updated successfully, but these errors were encountered: