❔ Build .sln with MsBuild

I try to build sln file from github with MsBuild, and i get this error. repo: https://github.com/ca1e/REngine-MSG-Tool "C:\REngine-MSG-Tool-main\REngine-msg-tool.sln" (default target) (1) -> "C:\REngine-MSG-Tool-main\REngine-msg-tool\REngine-msg-tool.csproj" (default target) (2) -> C:\REngine-MSG-Tool-main\REngine-msg-tool\REngine-msg-tool.csproj(1,1): error MSB4041: The default XML namespace of t he project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns=" http://schemas.microsoft.com/developer/msbuild/2003" to the <Project> element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format. is there a chance to fix this? if u dont mind can guys pls build this sln for me? i don't have VStudio. thank u
GitHub
GitHub - ca1e/REngine-MSG-Tool: tool for unpack/repack text msg fil...
tool for unpack/repack text msg file for CAPCOM RE ENGINE games - GitHub - ca1e/REngine-MSG-Tool: tool for unpack/repack text msg file for CAPCOM RE ENGINE games
32 Replies
PucukTangkiL
PucukTangkiLOP3y ago
OS W10 Pro x64bit Command: MSBuild.exe C:\Folder Containing My Visual Studio Solution\My Solution.sln /property:Configuration=Release
PucukTangkiL
PucukTangkiLOP3y ago
Microsoft Download Center
Microsoft Build Tools 2015
Microsoft Build Tools 2015 provides the essential tools for building managed applications.
PucukTangkiL
PucukTangkiLOP3y ago
.Net Runtime include? or just NET SDK ? Okey. i will try. thank you for ur answer. appreciate. Thank you. its working!
PucukTangkiL
PucukTangkiLOP3y ago
for the first time its working, but now after run this command "build solution.sln" output: It was not possible to find any installed .NET Core SDKs Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from: https://aka.ms/dotnet-download i have SDK v7 latest version
Microsoft
.NET Downloads (Linux, macOS, and Windows)
Official .NET downloads for Linux, macOS, and Windows. .NET is a free, cross-platform, open-source developer platform for building many different types of applications.
PucukTangkiL
PucukTangkiLOP3y ago
its nothing just blank, but i'm sure SDK already installed from link above v7
WhiteBlackGoose
did you restart your terminal? installation may modify env variables
PucukTangkiL
PucukTangkiLOP3y ago
yes and still same Microsoft.NETCore.App 3.1.16 [C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 3.1.16 [C:\Program Files (x86)\dotnet\shared\Microsoft.WindowsDesktop.App]
WhiteBlackGoose
well dotnet --list-sdks should return something something bad about your installation it may sound silly but you might wanna reboot or actually wait ensure you have the dotnet you need what does where dotnet return? I remember someone screwed their installation and had two installs at a time
PucukTangkiL
PucukTangkiLOP3y ago
yes i remember i already have SDK v6 before and my program from github won't run because NET SDK is missing, so i download and install this https://dotnet.microsoft.com/download/dotnet-core/3.1 sugest from author and i try to build app again, this output come out It was not possible to find any installed .NET Core SDKs Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from: https://aka.ms/dotnet-download then i uninstall all SDK from control panel and install again v7 & reboot system and still same output. is there possible i can run dotnet build again?
WhiteBlackGoose
it's not dotnet build you have problems with and not with your github program problem is something with your SDKs and/or installs tell please what where dotnet returns
PucukTangkiL
PucukTangkiLOP3y ago
idk this part, what do u mean
WhiteBlackGoose
run where dotnet
PucukTangkiL
PucukTangkiLOP3y ago
here the output INFO: Could not find files for the given pattern(s).
WhiteBlackGoose
ehhh what but you can still invoke dotnet?
PucukTangkiL
PucukTangkiLOP3y ago
yes for sure, like old message above
WhiteBlackGoose
the fuck? that's something cursed ok can you show me your $PATH idk if it works on windows but try echo "$PATH"
PucukTangkiL
PucukTangkiLOP3y ago
only show this output "$PATH"
WhiteBlackGoose
try %PATH%
PucukTangkiL
PucukTangkiLOP3y ago
here we go. C:\Program Files\ImageMagick-7.1.0-Q16-HDRI;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files (x86)\dotnet;C:\Program Files\nodejs;C:\ProgramData\chocolatey\bin;C:\Program Files\dotnet;C:\Users\parrot\AppData\Local\Programs\Python\Python310\Scripts;C:\Users\parrot\AppData\Local\Programs\Python\Python310;C:\Users\parrot\AppData\Local\Microsoft\WindowsApps;C:\Users\parrot\AppData\Roaming\npm;C:\Users\parrot\AppData\Local\Programs\Microsoft VS Code\bin;C:\adb;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Git\cmd;C:\Program Files (x86)\dotnet-core-uninstall;C:\Users\parrot\AppData\Local\Programs\Python\Python310\Scripts;C:\Users\parrot\AppData\Local\Programs\Python\Python310;C:\Users\parrot\AppData\Local\Microsoft\WindowsApps;C:\Users\parrot\AppData\Roaming\npm;;C:\Users\parrot\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\parrot.dotnet\tools
WhiteBlackGoose
I see. Now let's
cd "C:\Program Files\dotnet"
./dotnet --list-sdks
cd "C:\Program Files\dotnet"
./dotnet --list-sdks
PucukTangkiL
PucukTangkiLOP3y ago
its here C:\Program Files\dotnet>dotnet --list-sdks 7.0.100 [C:\Program Files\dotnet\sdk]
WhiteBlackGoose
Finally Now let's go to the other dotnet that you have in x86 folder and run the same command with listing sdks there
PucukTangkiL
PucukTangkiLOP3y ago
wait... i can run "dotnet build" now, but i got this error C:\Program Files\dotnet\sdk\7.0.100\Microsoft.Common.CurrentVersion.targets(1229,5): error MSB3644: The reference assem blies for .NETFramework,Version=v4.0 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) f or this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka. ms/msbuild/developerpacks what should i do ?
WhiteBlackGoose
does your project have .NET Framework deps? for instance, analyzers let's do this create a new project
dotnet new console -n test && cd test
dotnet build
dotnet new console -n test && cd test
dotnet build
PucukTangkiL
PucukTangkiLOP3y ago
what should i do now?
WhiteBlackGoose
well it means your SDK works congrats now you gotta unscrew your project try dotnet clean in the project you were trying to build and btw since we found the needed dotnet, you can nuke ther other paths from PATH
PucukTangkiL
PucukTangkiLOP3y ago
yes its say build success, i still got error "The reference assemblies for .NETFramework,Version=v4.x.x were not found" i try different project still same
WhiteBlackGoose
huh? build success, but you get an error? Can you post the whole output?
PucukTangkiL
PucukTangkiLOP3y ago
here
WhiteBlackGoose
do your projects target .NET Framework?
PucukTangkiL
PucukTangkiLOP3y ago
I really appreciate your help, thanks for helping me a lot i install VS 2022 instead.
Accord
Accord3y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server