Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 从模板创建的项目具有错误的解决方案属性_.net_Visual Studio_Projects And Solutions - Fatal编程技术网

.net 从模板创建的项目具有错误的解决方案属性

.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

我有一个类库项目模板,它只有项目文件和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 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