JustAMartin
JustAMartin

Reputation: 13753

Where the data-tier application version number is stored in a Visual Studio project?

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?

Upvotes: 6

Views: 2012

Answers (2)

David Martin
David Martin

Reputation: 12248

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>

Upvotes: 6

Lynn Langit
Lynn Langit

Reputation: 4060

The dacpac version number doesn't appear to show up until after the first successful project build. After that however, it shows up as in .sqlproj file as shown below.

Dacpac version number info

Upvotes: 2

Related Questions