- Open your Visual Studio solution
- View > Property Manager
- Right click on your application or dll and select "Add Existing Property Sheet"
- In the file browser, navigate to this repo
- If you are:
- Building a DLL using LibraryLink, select LibraryLink.props
- Building a binary using MathLink, select MathLink.props
- Building a binary using WSTP, select WSTP.props
This is setup to use the default installation directory for Mathematica 12.1. If you wish to alter this:
- Click on the arrow to the right of the property sheet you added until you see VersionInformation
- Double click on VersionInformation
- Select User Macros in the list on the left
- If you just:
- Want to change the version number, double click on WolframVersionNumber
- Modify the complete path, double click on WolframInstallationDirectory
- Click Apply when finished.
- You might need to close your solution and reopen it