Closed jeremytammik closed 1 year ago
The current SDK version is listed in the file https://github.com/jeremytammik/RevitLookup/blob/dev/global.json Your VS version doesn't support .Net 6?
I would also suggest adding you to the
Authors
section, since you are currently the main maintaining author, and I am doing next to nothing at all.
As you wish) I will continue to support the project. Instead of direct development, you can give ideas, I will implement them
nope, not yet... working on it, downloading new sdk...
in .net 6 Microsoft has made a lot of emphasis on performance. There is also a lot of syntactic sugar, you need to write less code https://github.com/jeremytammik/RevitLookup/blob/dev/Installer/Installer.cs .Net 6 style https://github.com/jeremytammik/RevitLookup/blob/dc3055c439cb46e5ef4c4e24fea6e333fab2c991/Installer/Installer.cs .Net 5 style
no Main method, implicit namespace, implicit class
@jeremytammik .Net 6 support list:
Try to install VS 2022 or enable SDK preview support
If you have a preview installed of the requested .NET SDK version, you also need to set the option to enable previews in Visual Studio. Go to Tools > Options > Environment > Preview Features, and make sure that Use previews of the .NET Core SDK is checked.
Microsoft will no longer develop 2019, so this version of the IDE loses its meaning. I might have switched to .Net 6 in vain, it's just that there are no other active developers in the project, so I didn't warn anyone about it. .Net 6 makes my life easier, but if you want to develop the project on the old version of IDE too, I can return .Net 5
OK, I'll install VS 2022 next. Might take a day or two, because I have low bandwidth here...
Hi @Nice3point ,
I have problem with .NET6 , may be problem come from we can't use feature from .NET6 because revit stuck in the version of .NET Framework 4.8, I have test with some load assembly use some feature with AssemblyLoadContext in here , I think this is just an update to prepare for the future, right?
@chuongmep hi) you can use the features of SDK 6 (c# 10, minimal code, file-scoped namespaces, you can search about net 5 and net 6 features on Google ), but to develop the plugin TargetFramework must still be net48 version 🙃
https://forums.autodesk.com/t5/revit-api-forum/does-revit-target-net-standard/m-p/10814213#M60307
many thanks, the links are very helpful.
@jeremytammik hi, can we close this issue?) or do you still have any questions?
no questions, please feel free to close it. thank you!
hi Roman @Nice3point ! Happy New Year to you! Thank you for the new release 2022.0.3.2! I notice that it requires me to install an updated .NET SDK 6.0: It reports error
NETSDK1045
: The current .NET SDK does not support targeting .NET 6.0; Either target .NET 5.0 or lower, or use a version of the .NET SDK that supports .NET 6.0. I am installing the 6.0 SDK. Maybe this build requirement ought to be mentioned in the readme? In the past, I stuck with a very old version of VS and the SDK, bordering on obsolete, to make sure that absolutely everybody else was more up-to-date than me. Now, we are forcing developers to update their VS and .NET more promptly... I suggest documenting that.I would also suggest adding you to the
Authors
section, since you are currently the main maintaining author, and I am doing next to nothing at all.What do you think?