.NET Core: Using AssemblyInfo shared between assemblies
This content has 3 years. Some of the information in this post may be out of date or no longer work. Please, read this page keeping its age in your mind.There was a time when project.json has replaced the AssemblyInfo. But since .NET core uses .csproj, instead of the project.json, AssemblyInfo comes to the development again. If you want to version your several different assemblies together, then follow this tutorial. Add a shared AssemblyInfo.cs Right click on your solution, and select Add > New Item.. In the following screen, select Visual C# class, and name it as ‘AssemblyInfo.cs’ Replace the file content with the example below: Set your projects to use the shared assembly info Do this all of your projects where you want to use the shared assembly info file. Edit your project file with a text editor (or right click on project > Edit project file) Add the following tag to the PropertyGroup tag in order to diable automatic assemblyinfo.cs generation: Add the shared assembly info to be used with inserting the following tags to between the project tags: If the project has no Properties folder, like .NET Standard projects basically do, then add the new folder also with this snippet:
Hi, I am András,
I am a seasoned software engineer from Budapest, Hungary with a strong focus on mobile app development using .NET MAUI and Xamarin.Forms. My expertise also extends to website building for my happy customers and other complex system designing. I am passionate about developing well-organized, maintainable software solutions.