.net 从模板创建的项目具有错误的解决方案属性
我有一个类库项目模板,它只有项目文件和AssemblyInfo文件。这是模板中项目文件的内容:.net 从模板创建的项目具有错误的解决方案属性,.net,visual-studio,projects-and-solutions,.net,Visual Studio,Projects And Solutions,我有一个类库项目模板,它只有项目文件和AssemblyInfo文件。这是模板中项目文件的内容: <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <!-- This adds default build flavo
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- This adds default build flavors -->
<Import Project="..\common.targets" />
<PropertyGroup>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{$guid1$}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>$safeprojectname$</RootNamespace>
<AssemblyName>$safeprojectname$</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
正如您所看到的Debug |为版本
配置指定了任何CPU
。我应该怎么做才能使模板正常工作
{C12D9BEF-3A1D-4E99-B314-35D92D8F5BC1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C12D9BEF-3A1D-4E99-B314-35D92D8F5BC1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C12D9BEF-3A1D-4E99-B314-35D92D8F5BC1}.Debug|x86.ActiveCfg = Debug|Any CPU
{C12D9BEF-3A1D-4E99-B314-35D92D8F5BC1}.Release|Any CPU.ActiveCfg = Debug|Any CPU
{C12D9BEF-3A1D-4E99-B314-35D92D8F5BC1}.Release|Any CPU.Build.0 = Debug|Any CPU
{C12D9BEF-3A1D-4E99-B314-35D92D8F5BC1}.Release|x86.ActiveCfg = Debug|Any CPU