-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mapster.tool does not support .net 6 #391
Comments
Hi all, All projects are compiled under net6.0 and you can use the mapster.tool without the exception described. I created a small example of how to use the tool unitil we can have a regular tool based on nuget. |
Your example still uses the mapster tool though? What am I missing. |
The Mapster.Tool.exe tool from the last nuget is not working (at least if you have net6.0 SDK installed on your computer - in my case a Macintosh). So I changed the source code (PR) to have my build of the tool working : // How to generate code with Mapster.Tool.exe |
Please try the latest version now available on NuGet and let me know how it goes. I'm on standby to resolve any issues you may encounter. |
Hello, I am new to this conversation, but followed it quite closely. Good job @andrerav. |
mapster.tool does not support .net 6, I got this error:
1>Could not load file or assembly 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
1> at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
1> at System.Reflection.RuntimeModule.GetTypes()
1> at System.Reflection.Assembly.GetTypes()
1> at Mapster.Tool.Extensions.Scan(CodeGenerationConfig config, Assembly assembly) in D:\git\Mapster\src\Mapster.Tool\Extensions.cs:line 177
1> at Mapster.Tool.Program.GenerateModels(ModelOptions opt) in D:\git\Mapster\src\Mapster.Tool\Program.cs:line 146
1> at CommandLine.ParserResultExtensions.WithParsed[T](ParserResult
1 result, Action
1 action)1> at Mapster.Tool.Program.Main(String[] args) in D:\git\Mapster\src\Mapster.Tool\Program.cs:line 17
The text was updated successfully, but these errors were encountered: