Tessalator Posted May 12, 2021 Share Posted May 12, 2021 When creating a Component in the Asset Browser (Create -> Create C# Component) an incorrect entry gets made in the VS Project File. Here, the `SlashTest` entry is created when a `SlashTest` component is created. It uses a forward slash. The convention is a backslash. Other Unigine entries are correct. <ItemGroup> <Compile Include="data\HotSwap.cs"/> <Compile Include="data/SlashTest.cs"/> </ItemGroup> <ItemGroup> <Compile Include="source\AppEditorLogic.cs"/> <Compile Include="source\AppSystemLogic.cs"/> <Compile Include="source\AppWorldLogic.cs"/> <Compile Include="source\main.cs"/> </ItemGroup> `Hot swap` is just a file created in the IDE for reference. Visual Studio doesn't care, but this becomes a problem with things like refactoring. Tooling does not always recognize the forward slash and will add an entry with the back slash. This can lead to a confusing situation where the IDE reports a duplicate declaration error (red lined), but the project still compiles. Link to comment
vvvaseckiy Posted May 13, 2021 Share Posted May 13, 2021 Hi Tessalator, Thank you for noticing this. We'll fix it in future updates Link to comment
Recommended Posts