Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.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
Visual studio 2012 从我的模板创建新项目时获取错误消息_Visual Studio 2012_Project Template - Fatal编程技术网

Visual studio 2012 从我的模板创建新项目时获取错误消息

Visual studio 2012 从我的模板创建新项目时获取错误消息,visual-studio-2012,project-template,Visual Studio 2012,Project Template,我从现有项目创建了一个项目模板,在本例中,它只是一个资源DLL 我用$projectname$标记替换了项目中的一些数据,以便内容和文件名采用我输入的值作为项目名称。当我从模板创建一个新项目时,我看到两个对话框,第一个似乎表示成功,即 The operation completed successfully. 第二个表示存在访问冲突,即 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) 我按下OK按

我从现有项目创建了一个项目模板,在本例中,它只是一个资源DLL

我用$projectname$标记替换了项目中的一些数据,以便内容和文件名采用我输入的值作为项目名称。当我从模板创建一个新项目时,我看到两个对话框,第一个似乎表示成功,即

The operation completed successfully.
第二个表示存在访问冲突,即

Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
我按下OK按钮,新项目不会显示。我检查了磁盘,只创建了项目文件(vcxproj),在这种情况下看起来不错,没有创建其他文件

我检查了vcxproj文件,它看起来很好

其他资料:

  • 我正在使用VS 2012
  • VS是在管理员模式下启动的
  • 目标位置是“我的文档”文件夹
有什么想法吗


//*eggbox

SolutionName.vcxproj文件包含有关其他编译文件的信息。解决方案必须编译的所有文件必须与SolutionName.vcxproj文件位于同一文件夹下

这是一个非常有趣的问题,与vcxproj文件的下一行相关


创造

该问题也转载于VS 2013

<ItemGroup>
<ClCompile Include="Example\AdditionCompiledFile.cpp" />
<ClCompile Include="ConsoleApplication1.cpp" />
<ClCompile Include="stdafx.cpp">
  <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='DebugMD|Win32'">Create</PrecompiledHeader>
</ClCompile>