-
Notifications
You must be signed in to change notification settings - Fork 301
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
suggestion around the transient csproj file that may break upstream and downstream fable tooling #3634
Comments
I think it should be possible to name with the suffix
Sorry, I don't understand this proposition could you please explain what you need to happen here with XML examples or something.
Because all fsproj files should have the line <?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<!--
This is a temporary file used by Fable to restore dependencies
If you see this file in your project, you can delete it safely
-->
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
... Note: We can put the comment at the top level of the XML file because of either the XML specs or
We discussed this idea with some other Fable contributors and this is reality not possible because the user could use some
Right now, the idea to completely remove the needs of a |
@MangelMaxime for assembly name property, I meant It may not even be needed as I assume no dotnet build is being performed, no assembly is ever produced, but assuming the remaining of the project would have Just by renaming the project from I hope this clarifies what I meant. |
Ah ok, I see the |
I faced this using femto Zaid-Ajaj/Femto#102 with fable 4.6 (and earlier, not a new issue):
dotnet restore
is broken with bad error messageIn meantime the project cracker evolves significantly, I was wondering if fable-compiler could adjust the "needs a csproj", to preclude the issue or making it easier for tooling (
femto
in my particular case, but other things may face issues, since it breaks vanilladotnet restore
in peculiar ways) to have safety workaround to keep everything as smooth as reasonably possible, even for neophytes.Fable/src/Fable.Cli/ProjectCracker.fs
Line 649 in 308acef
My first guess of a minimal change would be:
.csproj
that highlights the nature of itNo pressure and also looking for what conceptually would be a better fix (I thought the csproj should be out of tree, in
$tmp
, but it may mean rewriting way too many filenames for this to have a chance to work).I think it is worth it for all projects that would remain stuck on a given fable version that would embed such patch, if the overhaul of project cracker with better msbuild bits isn't impending.
This would make fable depedent tooling able to just clear up the csproj, if
dotnet restore
or other SDK things fail due to it, without risk of erasing a wrong csproj ever.The text was updated successfully, but these errors were encountered: