Visual Studio 未创建“属性"项目的文件夹? [英] Visual Studio not creating a "Properties" folder for a project?

查看:42
本文介绍了Visual Studio 未创建“属性"项目的文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是在 VS2010 ...

This is in VS2010 ...

我想不通,但是我的程序集没有输出一个带有 AssemblyInfo 和其他位的 Properties 文件夹.我检查了 csproj 文件和以下内容:

I can't figure this out, but my assembly is not outputting a Properties folder with AssemblyInfo and the other bits that go along with it. I checked the csproj file and the following:

<AppDesignerFolder>Properties</AppDesignerFolder>

存在,但在构建时没有生成任何内容.我错过了什么?

Is present, yet on build nothing gets generated. What am I missing?

推荐答案

该文件夹中的内容不是在构建期间生成的,它们应该存在并包含在构建中.当您创建新的解决方案/项目时,将创建这些文件.如果您删除它们,则必须手动重新创建它们或从单独的项目中复制它们(并更新它们).

The things in that folder are not generated during a build, they should exist and be included in the build. When you create a new solution/project, those files will be created. If you delete them, then you'd have to manually recreated them or copy them from a separate project (and update them).

AppDesignerFolder 只是告诉 Visual Studio 它应该在哪里查找一些可用于更新那里的文件的 UI 元素(即 AssemblyInfo 中的版本信息).

The AppDesignerFolder just tells Visual Studio where it should look for some of the UI elements that can be used to update the files there (i.e. the version information in AssemblyInfo).

这篇关于Visual Studio 未创建“属性"项目的文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆