Author Topic: Might be a bug: The license for Visual Studio has expired.  (Read 1499 times)

flethuseo

  • Senior Community Member
  • Posts: 171
  • Hero Points: 2
Might be a bug: The license for Visual Studio has expired.
« on: January 04, 2016, 04:49:12 pm »
When I try to build a VS2010 in Slickedit, I am getting this error:

Code: [Select]
C:\dev\Prod.DC.Kingdom.Dev\C++\VS10>"C:\Program Files\SlickEdit Pro 20.0.1\win\vsbuild" -signal 58193 -command devenv "C:\dev\Prod.DC.Kingdom.Dev\C++\VS10\Kingdom_2015.sln" /build "Debug" /project "C:\dev\Prod.DC.Kingdom.Dev\C++\VS10\Kingdom_2015.vcxproj" /projectconfig "Debug|x64"
 VSLICKERRORPATH="C:\dev\Prod.DC.Kingdom.Dev\C++\VS10"
devenv C:\dev\Prod.DC.Kingdom.Dev\C++\VS10\Kingdom_2015.sln /build Debug /project C:\dev\Prod.DC.Kingdom.Dev\C++\VS10\Kingdom_2015.vcxproj /projectconfig "Debug|x64"

Microsoft Visual Studio 2015 Version 14.0.23107.0.
Copyright (C) Microsoft Corp. All rights reserved.

The license for Visual Studio has expired.

The evaluation period for this product has ended.
C:\dev\Prod.DC.Kingdom.Dev\C++\VS10>

I do not get the error when I build using VS2010 directly.

Ted

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1039
  • Hero Points: 87
Re: Might be a bug: The license for Visual Studio has expired.
« Reply #1 on: January 04, 2016, 05:12:38 pm »
When you loaded the solution, it does try to pick a platform toolset to build from, and will default to the latest installed version of Visual Studio toolset if it is not explicitly set in one of the Visual Studio projects.  There is a def-var you can set to override any checks and you can specify the version you want to build, on the SlickEdit command-line you can use:
set-var def_use_visual_studio_version 10

and that will set the Visual Studio enviroment to version 10 (VS2010) when you load a solution file.

flethuseo

  • Senior Community Member
  • Posts: 171
  • Hero Points: 2
Re: Might be a bug: The license for Visual Studio has expired.
« Reply #2 on: January 05, 2016, 03:32:19 pm »
Problem fixed, thanks.

flethuseo

  • Senior Community Member
  • Posts: 171
  • Hero Points: 2
Re: Might be a bug: The license for Visual Studio has expired.
« Reply #3 on: January 12, 2016, 05:25:24 pm »
Ok, new problem. I'm trying to compile a simple program in VS2013, and I'm getting an error:

C:\Users\egutarra\Documents\Visual Studio 2013\Projects\ConsoleApplication3\ConsoleApplication3>"C:\Program Files\SlickEdit Pro 20.0.1\win\vsbuild" -signal 58001 -command devenv "C:\Users\egutarra\Documents\Visual Studio 2013\Projects\ConsoleApplication3\ConsoleApplication3.sln" /build "Debug" /project "C:\Users\egutarra\Documents\Visual Studio 2013\Projects\ConsoleApplication3\ConsoleApplication3\ConsoleApplication3.vcxproj" /projectconfig "Debug|Win32"
 VSLICKERRORPATH="C:\Users\egutarra\Documents\Visual Studio 2013\Projects\ConsoleApplication3\ConsoleApplication3"
devenv "C:\Users\egutarra\Documents\Visual Studio 2013\Projects\ConsoleApplication3\ConsoleApplication3.sln" /build Debug /project "C:\Users\egutarra\Documents\Visual Studio 2013\Projects\ConsoleApplication3\ConsoleApplication3\ConsoleApplication3.vcxproj" /projectconfig "Debug|Win32"

Microsoft (R) Visual Studio Version 10.0.40219.1.
Copyright (C) Microsoft Corp. All rights reserved.
1>------ Build started: Project: ConsoleApplication3, Configuration: Debug Win32 ------
1>Build started 1/12/2016 11:24:00 AM.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(518,5): error MSB8008: Specified platform toolset (v120) is not installed or invalid. Please make sure that a supported PlatformToolset value is selected.
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.03
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

C:\Users\egutarra\Documents\Visual Studio 2013\Projects\ConsoleApplication3\ConsoleApplication3>


flethuseo

  • Senior Community Member
  • Posts: 171
  • Hero Points: 2
Re: Might be a bug: The license for Visual Studio has expired.
« Reply #4 on: January 12, 2016, 05:29:04 pm »
Well, it got fixed after I unset the variable that I was using to get it to work with 2010. I also had to restart Slickedit.

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1039
  • Hero Points: 87
Re: Might be a bug: The license for Visual Studio has expired.
« Reply #5 on: January 12, 2016, 06:40:33 pm »
True, unsetting def_use_visual_studio_version does not automatically reset the all the environment variables for builds.  It only applies to setting the environment on loading the solution.  You would need to close and reload the solution, or restart SlickEdit for that.   There are built-in commands you can run on the SlickEdit command-line that will change those environment variables on demand if you ever need them:
set-visualstudio2015-environment
set-visualstudio2013-environment
set-visualstudio2012-environment
set-visualstudio2010-environment
set-visualstudio2008-environment
set-visualstudio2005-environment