简体   繁体   中英

F# Subfolder Error

If I add two subfolders with the same name in an F# project I get this error:

F#文件夹错误

The folder strucure is:

  <ItemGroup>
    <Compile Include="Test\File1.fs" />
    <Compile Include="SubFolder\Test\File2.fs" />
  </ItemGroup>

Does anyone know a work around?

Make sure you dont have in your project

<ItemGroup>
    <Compile Include="Folder1\File1.fs" />
    <Compile Include="SubFolder\Test\File2.fs" />
    <Compile Include="Folder1\another.fs" />
</ItemGroup>

but instead

<ItemGroup>
    <Compile Include="Folder1\File1.fs" />
    <Compile Include="Folder1\another.fs" />
    <Compile Include="SubFolder\Test\File2.fs" />
</ItemGroup>

(contiguous folders mentions)

This causes a bug which has been reported. If you can isolate and reproduce a bug, please send it to fsbugs@microsoft.com, the team really looks after those pbs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM