Open
Description
Describe the bug
I have a bit of scripting in my .fsproj file (to render some json-schemas from yaml written specs):
<ItemGroup>
<YamlFiles Include="assets/schema/**/*.yaml" />
<JsonFiles Include="@(YamlFiles->'assets/schema/%(RelativeDir)%(Filename).json')" />
</ItemGroup>
<Target Name="GenerateJsonFromYaml" BeforeTargets="BeforeBuild" Inputs="@(YamlFiles)" Outputs="@(JsonFiles)">
<Exec Command="dotnet fsi Yaml2Json.fsx @(YamlFiles, ' ')" />
</Target>
<ItemGroup>
<None Include="assets/schema/**">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
dotnet restore
and dotnet build
handle this code prefectly fine (with expected results), but Ionide fails to load the project:
in the project list it shows "myproject.fsproj (loading...)" and then never loads the project.
If I remove the top two sections (the first ItemGroup
and Target
) then Ionide loads fine.
To Reproduce
Add something like the above to your .fsproj.
You can use something like cp
/copy
or simply touch
insteady of my Yaml2Json.fsi
(what the action does, probably doesn't matter anyway).
Environment (please complete the following information):
- OS: Ubuntu 24.04
- Ionide version: 7.25.2
- VSCode version: 1.97.2
- dotnet SDK version: 9.0.103
- mono / .Net Framework version: N/A
Metadata
Metadata
Assignees
Labels
No labels
Activity