Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2017 - AssemblyInfo.cs not found

Today, building my solutions, this problem appear:

[Error] The file '...\ Projects \ Application \ Application \ obj \ Release \ netcoreapp2.0 \ Application.AssemblyInfo.cs' cannot be found.

I've found solutions for other versions of Visual Studio but not for 2017

Any recomendation on how this can be regenerated?

Kind regards

like image 646
Luis Alberto Delgado de la Flo Avatar asked Sep 05 '17 16:09

Luis Alberto Delgado de la Flo


People also ask

Where can I find AssemblyInfo CS?

It is located under the folder "Properties". AssemblyInfo. cs file also get created, when you create any Web Application project.

How do I make AssemblyInfo CS?

You can generate an assemblyInfo. cs by right clicking the project and chosing properties. In the application tab fill in the details and press save, this will generate the assemblyInfo.

What is AssemblyInfo Cs in C#?

AssemblyInfo. cs contains information about your assembly, like name, description, version, etc. You can find more details about its content reading the comments that are included in it.


2 Answers

For me, had to create a new assembly file. Steps:

  1. Right-click project properties (not solution).
  2. Choose Application tab.
  3. Click Assembly Information button. Fields will probably be all empty.
  4. Add stuff.
  5. Click OK and exit properties.
  6. Rebuild.
like image 131
Gregory Bologna Avatar answered Oct 13 '22 22:10

Gregory Bologna


I also got this error after I Sync-ed to VS Team Service and I got many others errors. I already tried Greg's suggestion but it didn't work. But I tried in different way:

  1. right click project (not solution)
  2. unload project
  3. re-load project
  4. rebuild solution

and my project run well again.

like image 26
Daleman Avatar answered Oct 13 '22 22:10

Daleman