I got this error when trying to build a solution in Visual Studio 2015 that I pulled out of source control recently. To fix it, I closed Visual Studio and opened a lot of the .csproj files for the projects in Notepad to see something like this amid the XML inside each one:
<ItemGroup>
<Compile Include="..\Version\AssemblyVersionInfo.cs">
<Link>AssemblyVersionInfo.cs</Link>
<SubType>Code</SubType>
</Compile>
<Compile Include="AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Milliman.cs">
<SubType>Code</SubType>
</Compile>
</ItemGroup>
Getting rid of the first "Compile Include" and resaving the files fixed the error. What is above thus becomes:
<ItemGroup>
<Compile Include="AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Milliman.cs">
<SubType>Code</SubType>
</Compile>
</ItemGroup>
No comments:
Post a Comment