현재 다음을 포함하는 VersionInfo.cs
파일이 있습니다.C#은 환경 변수를 통해 버전 번호를 할당합니다.
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
//Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Version
// Revision
//
//You can specify all the values or you can defaul the Revision and Build Numbers
//by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
이 파일은 그래서 하나의 버전 번호를 업데이트, 내 솔루션의 모든 프로젝트에 대한 링크로 추가되고, 그것 모두를 업데이트합니다. 이것은 잘 작동합니다.
하지만 환경 변수에서 버전 번호를 검색하고 VersionInfo.cs
파일에서 사용할 수 있는지 궁금합니다. 파일 VersionInfo.cs
에서이 작업을 수행 할 수 있습니까?
나는 이것과 같은 것을 찾고 지금까지 아무 것도 얻지 못했습니다.
다른 주제가 있습니다. 도움이 될 수도 있습니다. http://stackoverflow.com/questions/650/automatically-update-version-number –