Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to install Visual Studio Build tools behind Proxy (While creating Offline installer)

Background : I am trying to setup a build machine for dot net project . I need VS Build tools.

I have been trying to install Visual Studio Build tools behind Proxy, but installation gets blocked. Hence I used the offline installer method .

I downloaded vs-buildtools from this location "https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=15"

I followed this link to setup offline installer "https://blogs.msdn.microsoft.com/vcblog/2016/11/16/introducing-the-visual-studio-build-tools/"

My command looks like

vs_buildtools__1032894232.1529299355.exe --layout C:\softwares\vsoffline --add Microsoft.VisualStudio.Workload.MSBuildTools --add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Workload.NetCoreBuildTools --add Microsoft.VisualStudio.Workload.WebBuildTools --add Microsoft.VisualStudio.Workload.VCTools --lang en-US

I see a download window with message "Download is completed." enter image description here

Then I see a error window with message

"Error: An item with the same key has already been added.

Press any key to continue...Error: An item with the same key has already been added." enter image description here

Any idea what's going wrong.

I thought it may be due to having an old VS in my laptop, so created a new vm in AWS without any VS installation and tried. Getting same error.

like image 203
VVP Avatar asked Jan 20 '26 23:01

VVP


1 Answers

I don't know nothing about this installer, but I've noticed that you have two identical records in your command line:

--add Microsoft.VisualStudio.Workload.VCTools

I'd suggest that you should only include every module once.

like image 72
Alex Avatar answered Jan 23 '26 21:01

Alex



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!