数据层应用程序版本号存储在Visual Studio项目中的何处? [英] Where the data-tier application version number is stored in a Visual Studio project?
问题描述
我有一个实用程序,可以在AssemblyInfo.cs文件中填充版本号.现在,我需要实现一种功能来调整Visual Studio数据层应用程序(DACPAC)的版本号.
I have an utility which fills version numbers in AssemblyInfo.cs files. Now I need to implement a functionality to adjust version numbers for Visual Studio Data-Tier applications (DACPAC).
如果打开项目属性,然后单击数据层"应用程序的属性"按钮,我可以手动调整数量.但是我找不到此数字在项目文件中的存储位置,因此我不知道如何从实用程序中自动更新它.
I see that I can adjust the number manually if I open project properties and click the Data-Tier application Properties button. But I cannot find where this number is stored in project files, so I have no idea how to update it automatically from my utility.
您知道版本号存储在哪里吗?
Do you know, where is the version number stored?
推荐答案
除非您将属性更改为默认值,否则这些属性不会出现在.sqlproj文件中.当您这样做时,它们将显示如下:
The properties do not appear in the .sqlproj file unless you change them from their default values. When you do they will appear as follows:
<DacDescription>This is my description</DacDescription>
<DacApplicationName>Database.Application.Name</DacApplicationName>
<DacVersion>1.2.3.4</DacVersion>
这篇关于数据层应用程序版本号存储在Visual Studio项目中的何处?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!