Click here to Skip to main content
15,901,205 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
For my last tip/trick I converted/updated a project from MS FW 4.8 to Net 8.

I did not care about the version nr but now I plan an update and cannot get vsn 1.1.0.0

How can I set Net 8 file and assembly version number?

What I have tried:

deleted bin and obj folder

created new build - but version shows 0.0.0.0

start debug - App.xaml opens with error

System.IO.FileNotFoundException
  HResult=0x80070002
  Nachricht = Could not load file or assembly 'DataGridUC1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Das System kann die angegebene Datei nicht finden.
  Quelle = <Die Ausnahmequelle kann nicht ausgewertet werden.>
  Stapelüberwachung:
<Die Ausnahmestapelüberwachung kann nicht ausgewertet werden.>

The system cannot find the specified file.
Source = The exception source cannot be evaluated.
Stack trace:
Unable to evaluate exception stack trace.
Posted
Updated 5-May-24 3:04am
v2
Comments
0x01AA 5-May-24 10:20am    
The only idea I have ist to use 'Fuslogvw.exe' an Assembly Binding Log Viewer
Jo_vb.net 5-May-24 11:31am    
Thank you.

Now I created a new project with same name.
Copied all needed code files to it, installed NugGet packages and compiled.

Then changed project properties for version to 1.1.0.0
Then started Debug - and it works now!

1 solution

Answered only to remove it from the unanswered list.
Solved by OP, see comments to the question!
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900