0

Always I rebuil my project, the files with name "AssemblyInfo.Versioning.AutoGenerated.cs" are generated. This files have some information like:

[assembly: AssemblyCompany("Company Name XPTO")]
[assembly: AssemblyProduct("Project Name XYW")]
[assembly: AssemblyCopyright("Copyright - Company Name XPTO")]

This files are generated for all project I have in my solution. I need to change this values, but when I change, run the project, and values are restored.

Whats the problem? How to change this permanently?

Thanks in advance

fipcurren88
  • 701
  • 5
  • 26
  • Have you installed any version control tool or somewhere in your code? By default this file's name should be "AssembyInfo.cs", and these assemblies can be modified in the file and won't be restored. – Grace Feng Apr 06 '16 at 05:58
  • @Grace Feng - MSFT, I use only Visual Studio Online to version control. I try find the file "AssemblyInfo.cs" and I change this values. Thanks – fipcurren88 Apr 06 '16 at 06:10
  • So have you solve your problem? If not, you must make sure this "AssemblyInfo.cs" be checked out locally and have the edit permission. – Grace Feng Apr 06 '16 at 06:23
  • @GraceFeng-MSFT, No solve my problem. In my AssemblyInfo.cs not have any referenct for "Project Name XYW" or "Company Name XPTO" :( – fipcurren88 Apr 06 '16 at 07:36
  • So, I think the AssemblyInfo.cs files of all your projects are fine, but there is a another file named "AssemblyInfo.Versioning.AutoGenerated.cs", this file is generated by VSO, and you can't modify it? – Grace Feng Apr 06 '16 at 07:40
  • Did you use [Use a PowerShell script to customize your build process](https://msdn.microsoft.com/en-us/library/vs/alm/build/scripts/index) to build your project? – Grace Feng Apr 06 '16 at 07:54
  • @GraceFeng-MSFT, yes, I have the file "AssemblyInfo.Versioning.AutoGenerated.cs" and I modify if necessary but when I run my project from studio, the values changed in "AssemblyInfo.Versioning.AutoGenerated.cs" are restored to previous data. In this moment only use Studio to run project. I use PowerShell only when create package and install in another devite to test my app. Thanks – fipcurren88 Apr 06 '16 at 08:14
  • @GraceFeng-MSFT, Detail: I have some settings for the project start-up ("Debug", "Release", "XPTO", "TEST") – fipcurren88 Apr 06 '16 at 08:17
  • @GraceFeng-MSFT, If I add company name in Project>Properties>Assembly Information> Company name, Visual studio creates [assembly: AssemblyCompany(""Company Name"")] but give me an error: "Duplicate'AssemblyCompany' attribute – fipcurren88 Apr 06 '16 at 08:40

0 Answers0