This may be the error we encountered when you are pulling a Wordpress / PHP project. If the OBJECT .css and .less files are included in the project, the assembly will fail. If that happens
- Right-click the .css file and select Exclude From Project
- .css
- .less,
- - .less.
.css .min.css , .
.csproj, :
<ItemGroup>
<Content Include="test.less" />
<Content Include="test.css" />
</ItemGroup>
:
<ItemGroup>
<Content Include="test.less" />
<Content Include="test.css">
<DependentUpon>test.less</DependentUpon>
</Content>
<Content Include="test.min.css">
<DependentUpon>test.less</DependentUpon>
</Content>
</ItemGroup>