question

eri-9820 avatar image
0 Votes"
eri-9820 asked eri-9820 commented

Can't install visual cpp tools 2015 on Windows Server Core anymore

Hi,

I am having the Exit code: 0x80044000 when trying to install Visual Cpp Tools from VS 2015 like below

 choco install microsoft-visual-cpp-build-tools

https://community.chocolatey.org/packages/microsoft-visual-cpp-build-tools

Here is the error log: https://gist.github.com/ericoporto/e1150aba5fbd7bb1edead75ea54a55d3

I am installing in a Windows Server Core Docker Container: mcr.microsoft.com/dotnet/framework/runtime:4.8-windowsservercore-ltsc2019

This install used to work but started to giving me error now. Any idea why?

From the log, it appears the address "http://go.microsoft.com/fwlink/?LinkID=659005" died but it I don't know if it's just that.



tried to instead use VS2019 to get VS2015 tools, but now I am stuck at:


C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Current.targets(64,5): error MSB4062: The "SetEnv" task could not be loaded from the assembly C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Build.CppTasks.Common.dll. Could not load file or a
ssembly 'Microsoft.Build.Utilities.Core, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are ava
ilable, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [C:\Lib\SDL_sound\build\CMakeFiles\3.19.1\VCTargetsPath.vcxproj]
Done Building Project "C:\Lib\SDL_sound\build\CMakeFiles\3.19.1\VCTargetsPath.vcxproj" (default targets) -- FAILED.


I installed VS2019 with VS2015 ( VC.140) as following in docker:

ARG VISUALCPP_BUILD_TOOLS_VERSION=16.9.4.0
RUN cinst visualstudio2019buildtools --version %VISUALCPP_BUILD_TOOLS_VERSION% -y --package-parameters "--add Microsoft.VisualStudio.Workload.MSBuildTools --add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Component.Windows81SDK --add Microsoft.VisualStudio.Component.VC.140 --add Microsoft.Component.VC.Runtime.UCRTSDK" && \

Also this used a ton more space, which makes moving images on GKE a ton slower and it's more chance of timing out builds, I would prefer to keep with VC2015 build tools.



Please, I just want to use VS2015 command line build tools in my CI, they worked fine in Windows Server Core until days ago!!!!

vs-setupvs-msbuildwindows-server-core
· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @eri-9820 , welcome to Microsoft Q&A forum. Is it possible to directly install Visual C++ Build Tools 2015(Update 3) from here: Developer Community?

0 Votes 0 ·

I tried y follow the link and it instantly asked my login, so I assume no since this has to be installed in a CI environment.

Edit: and it's a .iso file! Can't do anything with this.

0 Votes 0 ·

If you can figure a cmd.exe or powershell command line that fetches and installs that successfully in a Windows Server Core Dockerfile, ok, but a graphical interface is completely useless for me.

0 Votes 0 ·

Hi @eri-9820 , after checking, I think the issue is caused by the web installer files which were removed from the Microsoft Download Center.

Per this document: UPDATE: SHA-1 signed content to be retired

On April 26, 2021, Visual Studio 2015 and older web installer files were removed from the Microsoft Download Center. These products can be installed from ISO images available at Downloads – Visual Studio Subscriptions Portal.

I’m afraid, the web installer files are not available.

1 Vote 1 ·
Show more comments

1 Answer

TianyuSun-MSFT avatar image
0 Votes"
TianyuSun-MSFT answered TianyuSun-MSFT edited

Hi @eri-9820 ,

Thanks for your feedback.

I think this link: Microsoft Build Tools 2015 Update 3 may meet your requirement. Please kindly check if it works.

95443-image.png



Update1:

Per this document: UPDATE: SHA-1 signed content to be retired.

On April 26, 2021, Visual Studio 2015 and older web installer files were removed from the Microsoft Download Center. These products can be installed from ISO images available at Downloads – Visual Studio Subscriptions Portal.

The web installer files were removed from the Microsoft Download Center and only ISO images are available.

Best Regards,
Tianyu


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


image.png (17.3 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

When trying to install the Build Tools 2015 Update 3 from the link you gave, I get the following error on install:
95665-image.png


0 Votes 0 ·
image.png (24.7 KiB)

Hi @TiffanyMeyer-7155 , thanks for your feedback. I tested on my side and I saw the same issue. I noticed that VS 2015 and older web installer files were removed from the Microsoft Download Center, and it can only be installed from ISO images. You can check this document: Update: SHA-1 signed content to be retired for more details.

0 Votes 0 ·