Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Friday, June 23, 2017 10:52 AM
Hi,
I have installed Visual Studio Community 2017 (26430.14) and I am looking for the GSL library headers on my computer. According to
they should be installed automatically although I don't quite understand what "a C++ workload" means. What should I select in the installer to get the headers installed. Alternatively, what is the standard setup (folders placement etc.) if I have to download from GitHub myself?
Info: the C++ Core Check is properly present in the solution properties.
Thanks a lot,
Claus
All replies (6)
Wednesday, July 12, 2017 7:19 AM ✅Answered
Hi Claus,
Thank you for your update.
As far as I know, we need to manually install this package through Nuget or install then configure it under each solution or project. If the solution includes several projects, you can right click the solution name and select ‘Manage Nuget Package for Solution…’ to install this package into many projects, it is also very convenient.
You can also redirect to this GSL support forum: https://github.com/Microsoft/GSL and click ‘Issues‘ to start a new issue to seek for a more professional support, since our forum is to discuss the VS IDE, thank you for your understanding.
BTW, if you think my previous reply is helpful for your issue, you can mark it as answer and we will close this thread. Meanwhile, it will help other community members who meet the same issue to easier search a method to use the GSL in project, thanks in advance.
Have a nice day.
Best regards,
Sara
MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]
Monday, June 26, 2017 5:48 AM | 1 vote
Hi Claus,
Welcome to the MSDN forum.
>> The GSL is also available in standalone form at http://www.nuget.org/packages/Microsoft.Gsl
Refer to the above message, please a try with the following steps to install the GSL for C++ projects.
- Create a new C++ project, right click the project name under Solution Explorer and choose ‘Manage Nuget Packages…’
- Click ‘Browse’ tab and search with the keywords “Microsoft.gsl”, it will filter out the Microsoft.Gsl package and click ‘Install’ button to install it
- After that, we will add the gsl.h header file like the following screenshot:
Best regards,
Sara
MSDN Community Support<br/> Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact <a href="mailto:[email protected]">[email protected]</a>.
Tuesday, July 4, 2017 5:37 AM
Hi Claus,
Have you tried the method that I provided or not? Right click the solution or project name and choose the ‘Manage Nuget Packages for Solution…’ or ‘Manage Nuget Packages…’, then click ‘Browse’ and search with the keyword to filter out the expected one, then install this GSL package into the solution or project.
If it not works, please feel free to let me know and I will help you continuing research this issue.
If it works, please mark it as answer and that will help other community members who meet the same issue to easier search this solution, thank you for your cooperation.
Best regards,
Sara
MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]
Wednesday, July 12, 2017 6:41 AM
Hi Sara,
Thank you very much for your response. Yes, that works. However, I am surprised that the package is installed under the project. Perhaps I am misunderstanding something, but I thought that the "automatic installation" that is mentioned on the web-page that I referred to, meant that the include-files were installed with the studio, so that it was a one-time installation, which would also be covered by automatic updates etc. Is that not the case?
Cheers, Claus
Thursday, October 4, 2018 1:43 PM | 1 vote
Hi,
As far as I can tell, these NuGet packages are no longer maintained, and haven't been since early 2016.
What is the current advice for adding gsl?
Monday, July 27, 2020 10:10 AM | 1 vote
I installed the gsl as shown by Sara, but I've got bizarre compilation errors in span.h
I use MSVC Enterprise Version 15.9.21
What could it be?