PacketTypes not built using regular instructions #153
Replies: 4 comments
is what is being used to build on Ubuntu CI. Microsoft never updated MSBuild past .NET5.0 so custom tasks are not supported there, and we now generate packets via roslyn compiler during the build to keep things sane. If you want to use MSBuild, you will need to run the Roslyn code generators as an extra step. They are located under /SourceGenerators/ |
|
I did those commands and got the same errors. This is with Ubuntu dotnet (version=9.0.112, msbuild ver=17.12.50+191254d64). I don't see where the prebuild steps for the SourceGenerators are specified. I checked out the updated README (you beat me to the PR :-) ) but still the same errors. |
|
This is what we are using in CI that builds successfully: Slightly newer, might make a difference as far as the Roslyn source generator. |
|
Found the problem... SourceGenerators/PacketSourceGenerator/PacketSourceGenerator.csproj specifies Microsoft.CodeAnalysis.CSharp version 4.13.0 but my system has version 4.12.0. There is an error in the log about the versions. That version mismatch keeps the generators from running. |
Uh oh!
There was an error while loading. Please reload this page.
Using Ubuntu with dotnet9 installed, if one clones the repository and follows the usual build instructions ("dotnet restore ...", "dotnet msbuild ..."), there are errors that "PacketType" and "LayerDataPacket" are not defined.
I presume that there is a build step somewhere to build the packet definitions.
Also, the instructions in the README say "dotnet msbuild LibreMetaverse.Release.sln" when that file doesn't exist.
All reactions