question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I: Visual Studio 2017 change of compiler tools directory layout

See original GitHub issue

Hey @kbilsted

I just had to reinstall my machine and with it I updated/installed the newest Visual Studio version 2017. Unfortunately, they made a bigger change in the folder structure. You can read more about it here https://blogs.msdn.microsoft.com/vcblog/2016/10/07/compiler-tools-layout-in-visual-studio-15/

By that, the DllExportTask property

LibToolPath="$(DevEnvDir)\..\..\VC\bin"

won’t work anymore, as the Dev Environment changed.

I circumvented this for now by importing the current tools version props

<Import Condition="Exists('$(DevEnvDir)\..\..\VC\Auxiliary\Build')" Project="$(DevEnvDir)\..\..\VC\Auxiliary\Build\Microsoft.VCToolsVersion.default.props" />  

and set the LibToolPath to

LibToolPath="$(DevEnvDir)\..\..\VC\Tools\MSVC\$(VCToolsVersion)\bin\Host$(Platform)\$(Platform)"

You may checkout https://github.com/nea/MarkdownViewerPlusPlus/blob/master/MarkdownViewerPlusPlus/MarkdownViewerPlusPlus.csproj#L280.

I am not 100% convinced by what I did, especially with the host platform… but it works for now ^^’ If something like that with 2017 comes up on your end.

Cheers

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:18 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
jokedstcommented, Apr 20, 2017

Ok, by simply removing the LibBoolPath attribute on the DllExportTask in NppPlugin.DllExport.targets it works for me in both VS2015 and VS2017. 😛

1reaction
kbilstedcommented, Jan 20, 2018

is the 2017 working for you yet? Just got a new machine, installed the pluginpack and VS2017 and seems to be working here (the v0.94.00 release from today).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Compiler Tools Layout in Visual Studio 2017
First, let's discuss the major parts of the compiler toolset. These are reflected in the top-level directory, e.g., %ProgramFiles(x86)%\ ...
Read more >
Change the build output directory - Visual Studio (Windows)
For C#, select the Build tab. For Visual Basic, select the Compile tab. For C++ or JavaScript, select the General tab. In the...
Read more >
What's new for C++ in Visual Studio 2017
New toolset layout: The compiler and related build tools have a new location and directory structure on your development machine. The new layout...
Read more >
Use the Microsoft C++ toolset from the command line
Use the Microsoft C++ (MSVC) compiler toolset from the command line outside of the Visual Studio IDE.
Read more >
How to install (v142) Build tools in Visual studio - c++
Go to: Project->Properties->General->Platform Toolset and change to the current version of your VS. Share.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found