When using the Microsoft.Licensing tooling integrated in Visual Studio, the Custom.After.Microsoft.Common.targets file is installed to the appropriate MSBuild folder during the installation of Code Protector.
Upgrade to VS 2015
As of Visual Studio 2013 (MSBuild 12.0) this folder is C:\Program Files (x86)\MSBuild\<Version>\Microsoft.Common.Targets\ImportAfter. So for Visual Studio 2015, the folder is C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.Targets\ImportAfter.
Upgrade to VS 2017
With Visual Studio 2017 the default location has changed to C:\Program Files (x86)\Microsoft Visual Studio\2017\<Edition>\MSBuild\15.0\Microsoft.Common.targets\ImportAfter
where <Editon> is the Visual Studio 2017 edition installed e.g. Professional, Ultimate etc.
Code Protector v3.2.1998 installer does correctly install the Custom.After.Microsoft.Common.targets file to the correct location. If you do not wish to upgrade to the latest runtime you need to manually copy the file from the old MSBuild location.
If you have migrated to VS2015 or VS2017 and do NOT wish to upgrade and re-install Code Protector you must manually copy C:\Program Files (x86)\MSBuild\<Version>\Microsoft.Common.Targets\ImportAfter\Custom.After.Microsoft.Common.targets
from old MSBuild location to the new MSBuild folder Studio location.
While copying the targets file to the new location may be quickest "short term" approach, we do recommend customers migrate to the latest version of Code Protector/Runtime whenever possible.
Upgrade and Reinstall Code Protector
If you install the latest Code Protector from your Software Potential account, you will also need to update your permutation and then install the updated permutation in Code Protector. (Please note the permutation upgrade process is irreversible and so you should download and back up your current permutation before you upgrade it.)
To update your permutation:
- Login to your Software Potential account
- Select Develop - > Manage Permutations option in the main menu - a table of all available permutations will be displayed.
- Select the permutation to be upgraded – the selected permutation will be highlighted in the table of available permutations
- Click Update – the Status field of the permutation should change to “Pending”
- Click Refresh periodically to check the progress of the update process - the duration depends on the load on the permutation generator.
When the Status field shows “Done” the permutation has been successfully updated. You can see the new version number in the Version column.
You can now download the permutation file by clicking the Permutation download link for the updated permutation and saving to an appropriate location for later use with the corresponding Code Protector version.
You will also need to download the corresponding Code Protector version by clicking on the Code Protector download link for the updated permutation.
Comments
0 comments
Article is closed for comments.