Closed Aupaaupa closed 3 years ago
Xcopy is not on macos, but it should be easy to replace, it's just a command to copy files. In visual studio, open the properties of the MKMTool project (so almost the root thing, just below the Solution in the Solution Explorer), and select Build Events. You should see two almost empty windows, with only one line in the second one:
XCOPY "$(SolutionDir)Presets" "$(TargetDir)Presets\" /S /Y
It says "copy "$(SolutionDir)Presets" to "$(TargetDir)Presets\", including all files and folders in it (/S) and don't prompt be about overwriting files (/Y). You should be able to do the same thing on mac with either the cp
or rsync
command (click to go to their documentation pages). So I think it should be either:
cp -r -f "$(SolutionDir)Presets" "$(TargetDir)Presets\"
or
rsync -r -u "$(SolutionDir)Presets" "$(TargetDir)Presets\"
I have tested none of these, so no promises. When all fails, you can just delete the command and copy the Preset folder manually to the MKMTool/bin/debug/ folder.
Thank you for helping me ! I'm sorry but i'm a total noob with Visual Studio... I cannot even find "Build Events". Here is what I see in the solution explorer
Okay I think I kind of understood what you meant : I try to build MKMTool and then go double click on the error at the bottom of the page. Then it sends me there :
I don't see the XCOPY command to replace ?
I don't know how macs work, on windows you would press right mouse button on the MKMTool you have selected in blue in the first screenshot and there go to properties. Here is how it looks on windows:
Here is also a stackoverflow answer for where to find post build events on mac: https://stackoverflow.com/questions/53264960/pre-build-post-build-events-in-visual-studio-for-mac
It seems to be different on mac. Here is what I have when I right click on the solution :
No properties...
I think i'm gonna give up to run MKMtool on my Mac, I don't have the skills to tweak the code and I'm doing stuff that I don't understand, and that is never good !
BUT, I could run it using bootcamp and it worked :) I think it is a great tool and the "check for cheap deals" feature is awesome.
I also tried the "Update Price" function (on test mode) and experienced a weird issue (let me know if I need to open a new thread for that) : the program tested a lot of card that are not in my inventory, which is about 1200 cards. I can't be a 100% sure but it seems that there were cards that are in my wantlists. Is it possible that the tool mixes up the places to look for prices to check ?
Thanks again for your help !
I also tried the "Update Price" function (on test mode) and experienced a weird issue (let me know if I need to open a new thread for that) : the program tested a lot of card that are not in my inventory, which is about 1200 cards. I can't be a 100% sure but it seems that there were cards that are in my wantlists. Is it possible that the tool mixes up the places to look for prices to check ?
That sounds very strange, nobody ever reported anything like this and I also did not see it. It would be best to start a new Issue (and close this one) where you describe exactly what you did and also if you could double check if it really were cards from the wantlist.
Hi,
I had this exact same problem (https://github.com/alexander-pick/MKMTool/issues/33#issuecomment-622129741) and I guess I solved it by following the instructions you gave. But then I hit run and I have this issue
/Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/MSBuild/Current/bin/Microsoft.Common.CurrentVersion.targets(5,5): Error MSB3073: La commande "XCOPY "/Users/thomas/Downloads/MKMTool-master/Presets" "/Users/thomas/Downloads/MKMTool-master/MKMTool/bin/Debug/Presets/" /S /Y" s'est arrêtée avec le code 127. (MSB3073) (MKMTool)
It's probably important to add I'm running Visual Studio for Mac.
Thanks for the help !