You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"coreclr-module: Your server needs to be compiled and needs to target (<TargetFramework>netcoreappX.X</TargetFramework>) with the same .net core version that is installed on your workstation"));
140
+
if (this->PrintError(server, result)) {
145
141
returnfalse;
146
142
}
147
-
if (result == -2147024894) {
148
-
server->LogInfo(
149
-
alt::String(
150
-
"coreclr-module: You need to place the AltV.Net.dll in your resource directory. Use publish to generate all dlls."));
151
-
returnfalse;
152
-
}
153
-
server->LogInfo(alt::String(strerror(errno)));
154
-
char* x_str = newchar[10];
155
-
sprintf(x_str, "%d", result);
156
-
server->LogInfo(
157
-
alt::String(x_str));
158
-
delete[] x_str;
159
143
server->LogInfo(
160
144
alt::String("coreclr-module: Unable to get ") + moduleName + ":" + classPath + "." + methodName +
161
145
" domain:" +
@@ -284,6 +268,7 @@ void CoreClr::CreateAppDomain(alt::IServer* server, alt::IResource* resource, co
284
268
285
269
if (result < 0) {
286
270
server->LogInfo(alt::String("coreclr-module: Unable to create app domain: 0x"));
271
+
this->PrintError(server, result);
287
272
} else {
288
273
server->LogInfo(alt::String("coreclr-module: Created app domain: 0x") + appPath);
boolCoreClr::PrintError(alt::IServer* server, int errorCode) {
354
+
if (errorCode == -2146234304) {
355
+
server->LogInfo(
356
+
alt::String(
357
+
"coreclr-module: Your server needs to be compiled and needs to target (<TargetFramework>netcoreappX.X</TargetFramework>) with the same .net core version that is installed on your workstation"));
358
+
returntrue;
359
+
} elseif (errorCode == -2147024894) {
360
+
server->LogInfo(
361
+
alt::String(
362
+
"coreclr-module: You need to place the AltV.Net.dll in your resource directory. Use publish to generate all dlls."));
0 commit comments