C
C#3y ago
Bujju

Where is AssemblyInfo.cs [Answered]

I just learned that I am not supposed to make my projects using the .NET Framework project templates, and I can't find AssemblyInfo.cs to set the version in my new project. I tried to make the file myself, but it said the version attributes were duplicates.
35 Replies
ero
ero3y ago
set the version in the project properties
Bujju
BujjuOP3y ago
I thought that setting was for making NuGet packages
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Bujju
BujjuOP3y ago
So I need to make a file myself for the product version?
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
ero
ero3y ago
or, again set it in the properties
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
ero
ero3y ago
yes, you can do that just fine
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
ero
ero3y ago
there is absolutely 0 downside of it
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Bujju
BujjuOP3y ago
I'm confused
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
ero
ero3y ago
what?
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
ero
ero3y ago
making up things or what
Bujju
BujjuOP3y ago
What is the name of the property for prodcut version?
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
ero
ero3y ago
so create a new release not that difficult
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Bujju
BujjuOP3y ago
Is it "Package Version"?
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Bujju
BujjuOP3y ago
Or is that for NuGet
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
ero
ero3y ago
it's just a version number, i could set it to 532.1.22.8475 and set my release version number to 0.1 fuckin who cares
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Bujju
BujjuOP3y ago
So what is the property name for the product version?
MODiX
MODiX3y ago
tebeco#0205
same result: dotnet build -c Release /p:Version=1.2.3-rc.01 dotnet build -c Release /p:VersionPrefix=1.2.3 /p:VersionSuffix=rc.01
Quoted by
<@!689473681302224947> from #Where is AssemblyInfo.cs (click here)
React with ❌ to remove this embed.
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Bujju
BujjuOP3y ago
Okay
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
ero
ero3y ago
setting the version doesn't "cause bugs" .net doesn't care
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
ero
ero3y ago
they don't want to make a package? who ever said that
Accord
Accord3y ago
✅ This post has been marked as answered!
Want results from more Discord servers?
Add your server