Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

When remove some resource will cause missing some node not be removed (in .csproj)

$
0
0

I have remove all resource and click "Save all",but when I add the same name file, I got a CS1566 error.

So I go to check the .csproj file and it shows

----------------

  <ItemGroup>
    <EmbeddedResource Include="Properties\Resources.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
    </EmbeddedResource>
  </ItemGroup>
  <ItemGroup>
    <EmbeddedResource Include="bin\Release\WebHostManagerService.exe" />
  </ItemGroup>

----------------

yep,it did not remove this  <ItemGroup> node and cause recogizing the same name file error.


Viewing all articles
Browse latest Browse all 4410


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>