Leandros / VisualStudioStandalone

Make your Visual Studio Portable
https://arvid.io
MIT License
201 stars 21 forks source link

Add Visual Studio 2019 support #8

Closed spartacus04 closed 1 year ago

Leandros commented 3 years ago

I don't think, VS2017 and VS2019 are that much different. Have you tried adapting the script?

illej commented 3 years ago

Hi @Leandros,

It seems the script doesn't work anymore even with VS2017 since they split up the UCRT. I have been trying to adapt it using both VS2019 and VS2017, but it seems like nowadays making sure all the files are in the right place isn't enough, as cl.exe struggles to find some of the required DLLs, possibly missing some env variables? I tried recreating the same environment as the dev console (vcvarsall.bat) but that didn't seem to help.

C:\Users\uwu\work>msvc\bin\cl test.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29333 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

test.c
c1: fatal error C1356: unable to find mspdbcore.dll

C:\Users\uwu\work>dir msvc\bin
 Volume in drive C has no label.
 Volume Serial Number is 468A-EA4A

 Directory of C:\Users\uwu\work\msvc\bin

11/15/2020  12:58 AM    <DIR>          .
11/15/2020  12:58 AM    <DIR>          ..
11/15/2020  12:57 AM    <DIR>          1033
11/13/2020  02:07 AM         1,922,440 c1.dll
11/13/2020  02:07 AM         7,400,840 c1xx.dll
11/13/2020  02:07 AM         6,596,488 c2.dll
11/13/2020  02:07 AM           326,064 cl.exe <------------------------
11/13/2020  02:07 AM            40,936 cvtres.exe
11/13/2020  02:07 AM         3,706,048 d3dcompiler_47.dll
11/13/2020  02:07 AM            20,384 lib.exe
11/13/2020  02:07 AM         1,854,384 link.exe
11/13/2020  02:07 AM           453,552 ml64.exe
11/13/2020  02:07 AM           313,720 mspdb140.dll
11/13/2020  02:07 AM           618,376 mspdbcore.dll <-----------------
11/13/2020  02:07 AM            22,960 undname.exe
              12 File(s)     23,276,192 bytes
               3 Dir(s)  35,271,729,152 bytes free

Do you have any intention to update the script?

Cheers!