Tarball 创建 - 根解决方案目录之外的引用文件

发布于 2024-12-18 05:21:20 字数 452 浏览 3 评论 0原文

我在 monodevelop 中创建了一个 Tarball 项目(Ubuntu 11.10 上为 2.6),用于从 Windows 移植到 mono-land 的 C# 解决方案。当前设置为为解决方案中的每个项目生成新的 makefile,而无需设置任何开关。

当我构建 tarball 项目时,我最终遇到了一些错误:

文件“未找到”。

...看起来它们会在下游导致这些错误:

解决方案“(blah)”正在引用位于根解决方案目录之外的文件“”。

我已尝试按照此相关问题中的建议删除 .pidb 文件。但我的问题更多的是包装时间的问题;构建解决方案效果很好。有没有人弄清楚(1)如何确定项目被哪些文件阻塞,以及(2)如何在输出中包含这些文件?

I've created a Tarball project within monodevelop (2.6 on Ubuntu 11.10) for a C# solution that's being ported from Windows to mono-land. It's currently set to generate new makefiles for each of the projects in the solution with no switches set.

When I build the tarball project, I end up with a handful of these errors:

File '' not found.

...which look like they cause these errors downstream:

The solution '(blah)' is referencing the file '' which is located outside the root solution directory.

I've tried removing the .pidb files, as recommended in this related issue. But my issue is more or a packaging-time one; building the solution works just fine. Has anyone figured out (1) how to determine which file(s) the project is choking on, and (2) how to include these files in the output?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

瀟灑尐姊 2024-12-25 05:21:20

我可以使用 MonoDevelop 2.8.6.3 重现同样的问题。我在尝试导出项目或创建 tarball 时遇到以下错误:

File '(...)/Microsoft.Net.Client.3.5' not found.
File '(...)/Microsoft.Net.Framework.3.5.SP1' not found.
File '(...)/Microsoft.Windows.Installer.3.1' not found.
File '' not found.
File '' not found.
The project '(ProjectName)' is referencing the file '' which is located outside the project directory.
The project '(ProjectName)' is referencing the file '' which is located outside the project directory.

解决方案: 您需要清理 .CSPROJ 文件以使它们与 MonoDevelop 兼容。

就我而言,我通过删除以下条目摆脱了 File '' not found 错误:

<SignAssembly>true</SignAssembly>

不知何故,我在 Visual Studio 的“项目属性”窗口中选中了“Sign assembly”复选框选项,但没有“ t 提供密钥文件的路径。

我通过删除此 ItemGroup 摆脱了其他错误:

<ItemGroup>
  <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
    <Visible>False</Visible>
    <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
    <Install>false</Install>
  </BootstrapperPackage>
  <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
    <Visible>False</Visible>
    <ProductName>.NET Framework 3.5 SP1</ProductName>
    <Install>true</Install>
  </BootstrapperPackage>
  <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
    <Visible>False</Visible>
    <ProductName>Windows Installer 3.1</ProductName>
    <Install>true</Install>
  </BootstrapperPackage>
</ItemGroup>

希望对其他人有帮助!

I could reproduce the same issue with MonoDevelop 2.8.6.3. I got the following errors when trying to export the project or create a tarball:

File '(...)/Microsoft.Net.Client.3.5' not found.
File '(...)/Microsoft.Net.Framework.3.5.SP1' not found.
File '(...)/Microsoft.Windows.Installer.3.1' not found.
File '' not found.
File '' not found.
The project '(ProjectName)' is referencing the file '' which is located outside the project directory.
The project '(ProjectName)' is referencing the file '' which is located outside the project directory.

Solution: You need to clean up your .CSPROJ files to make them compatible with MonoDevelop.

In my case, I got rid of the File '' not found error by removing the following entry:

<SignAssembly>true</SignAssembly>

Somehow I had checked the "Sign assembly" checkbox option in the Project Properties window in Visual Studio but didn't provide a path for the key file.

I got rid of the other errors by removing this ItemGroup:

<ItemGroup>
  <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
    <Visible>False</Visible>
    <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
    <Install>false</Install>
  </BootstrapperPackage>
  <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
    <Visible>False</Visible>
    <ProductName>.NET Framework 3.5 SP1</ProductName>
    <Install>true</Install>
  </BootstrapperPackage>
  <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
    <Visible>False</Visible>
    <ProductName>Windows Installer 3.1</ProductName>
    <Install>true</Install>
  </BootstrapperPackage>
</ItemGroup>

Hope that helps other people!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文