Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/image-processing/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 2008 vcproj文件中的项目参考格式(vs2008)_Visual Studio 2008_Vcproj - Fatal编程技术网

Visual studio 2008 vcproj文件中的项目参考格式(vs2008)

Visual studio 2008 vcproj文件中的项目参考格式(vs2008),visual-studio-2008,vcproj,Visual Studio 2008,Vcproj,我在这里再次请求帮助。 有人能给我看一个带有项目参考(不是程序集参考)的vcproj文件的示例吗,或者至少能给我看一下它是如何写入文件的格式 我已经在互联网上搜索了样本,但找不到一个只有项目参考的组件参考 <References> <AssemblyReference RelativePath="System.dll" AssemblyName="System, Version=2.0.0.0, PublicKeyToken=b77a5c

我在这里再次请求帮助。 有人能给我看一个带有项目参考(不是程序集参考)的vcproj文件的示例吗,或者至少能给我看一下它是如何写入文件的格式

我已经在互联网上搜索了样本,但找不到一个只有项目参考的组件参考

<References>
    <AssemblyReference
        RelativePath="System.dll"
        AssemblyName="System, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"
        MinFrameworkVersion="131072"
    />
    </References>

所以,任何人都可以给我一个示例,因为我需要通过将它们作为XML读取来处理这些引用

非常感谢

<ProjectReference
        ReferencedProjectIdentifier="{178A5D9D-1F3E-49B1-9190-916D0864BD5C}"
        RelativePathToProject=".\ReleaseNotes\ReleaseNotes.csproj"
    />

在.vcproj中的引用只涉及托管项目,因此,如果您想引用本机项目,还有其他方法:

  • 添加了libs中的引用项目
  • 在.sln文件引用中,P1依赖于P2
  • 在源代码中使用#pragma注释(lib,…)

为什么不创建这样一个引用并在文本编辑器中打开解决方案文件以查看它是如何添加的?好的,现在我已经获得了格式,谢谢。我的下一个问题是,有没有办法以编程方式获取MinFrameworkVersion=“131072”?因为我需要将这些projectref转换为assemblyref,我只需将proj文件修改为txt即可。或者不在文件中包含MinFrameworkVersion=“131072”是否安全。