解决 DSL SetUp 项目的问题

发布于 2024-08-01 17:34:42 字数 674 浏览 2 评论 0原文

我正在与 DSL 设置项目中的 InstallerDefinition.dslsetup 文件进行斗争。 我收到以下错误:

正在运行转换:安装项目无法从环境中检索项目“PsiTraffic.Modeling.PomModel.Dsl”的输出路径。 确保该项目存在于解决方案中。 仅支持 Visual C# 和 Visual Basic 项目类型。

项目“PsiTraffic.Modeling.PomModel.Dsl”位于解决方案中,它也是设置解决方案的项目参考。 该项目是 C# 的,所以它给我的仅有的两个指针是无用的。

这是它在 dslsetup 文件中引用的部分:

<dslSchemas>
    <dslSchema project="PsiTraffic.Modeling.PomModel.Dsl" filePath="GeneratedCode\PomModelSchema.xsd"/>
</dslSchemas>

如果我提供文件的完整路径,错误就会消失,但这违背了项目属性的全部要点,并且稍后我会从supportingAssembly 属性中收到错误。

这方面没有太多好的例子,而且它的 Visual Studio 没有为您提供太多诊断问题的支持。

任何见解或好的例子将不胜感激。

I'm fighting with the InstallerDefinition.dslsetup file in a DSL setup project. I'm getting the following error:

Running transformation: The setup project could not retrieve the output path for project 'PsiTraffic.Modeling.PomModel.Dsl' from the environment. Ensure that this project exists in the solution. Only Visual C# and Visual Basic project types are supported.

The Project 'PsiTraffic.Modeling.PomModel.Dsl' is in the solution, its also a project reference of the setup solution. The project is C# so the only two pointer's it gave me are useless.

This is the section that it is reffering to in the dslsetup file:

<dslSchemas>
    <dslSchema project="PsiTraffic.Modeling.PomModel.Dsl" filePath="GeneratedCode\PomModelSchema.xsd"/>
</dslSchemas>

If I provide a full path to the file the error goes away but this goes against the whole point of the project attribute, and I get errors later from the supportingAssembly attributes.

There aren't very many good examples on this and its Visual Studio doesn't provide you with much in the way of support to diagnose the problem.

Any insights or good examples would be appreciated.

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

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

发布评论

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

评论(1

意中人 2024-08-08 17:34:42

事实证明,问题在于使用解决方案文件夹,并且没有将所有项目放在同一目录级别。 就我而言,这是一个真正可怕的“功能”,而且据我所知,它没有记录下来,这真的很糟糕。

因此,如果您遇到类似问题,请确保您没有使用子文件夹或解决方案文件夹。

It turns out that the problem was down to using solution folders and not having all the projects on the same directory level. This is a truly hideous "feature" as far as I'm concerned, and its really bad that as far as I can see its not documented.

So if you encounter similar problems make sure you're not using subfolders or solution folders.

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