DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Last call! Secure your stack and shape the future! Help dev teams across the globe navigate their software supply chain security challenges.

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workloads.

Releasing software shouldn't be stressful or risky. Learn how to leverage progressive delivery techniques to ensure safer deployments.

Avoid machine learning mistakes and boost model performance! Discover key ML patterns, anti-patterns, data strategies, and more.

Related

  • How To Build a Multi-Zone Java App in Days With Vaadin, YugabyteDB, and Heroku
  • 5 Simple Tips to Keep Dockerized Apps Secure
  • How to Build a Concurrent Chat App With Go and WebSockets
  • Mastering Coroutine Execution: Yielding, Flow, and Practical Use Cases in Unity

Trending

  • FIPS 140-3: The Security Standard That Protects Our Federal Data
  • Developers Beware: Slopsquatting and Vibe Coding Can Increase Risk of AI-Powered Attacks
  • How To Develop a Truly Performant Mobile Application in 2025: A Case for Android
  • Breaking Bottlenecks: Applying the Theory of Constraints to Software Development

Fixing Error Failed to Locate ''CL.exe'' or MSB8020 When Deploying IL2CPP Solution

Here's how to fix a ''failed-to-locate'' error when deploying your IL2CPP solution.

By 
Joost van Schaik user avatar
Joost van Schaik
·
Aug. 07, 19 · Tutorial
Likes (1)
Comment
Save
Tweet
Share
10.5K Views

Join the DZone community and get the full member experience.

Join For Free

Symptom

You have created a Unity project to create an app using MRTK2, and you want to use the new IL2CPP back-end. You open the solution in Visual Studio 2019, you try to deploy it by using Build/Deploy, and all the way at the end, the compiler complains about the "CL.exe" missing.

Alternatively, you might get the slightly more verbose error:

"error MSB8020: The build tools for Visual Studio 2017 (Platform Toolset = 'v141') cannot be found. To build using the v141 build tools, please install Visual Studio 2017 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution"."

Cause

You have most likely used the recommended Unity version (2018.4.2f1) to create the project. This version — the name gives it away — was released before Visual Studio 2019, and therefore, it assumes the presence of Visual Studio 2017 and it's accompanying C++ tools set, 'V141'. So, Unity generated a C++ solution referencing that toolset.

But now it's 2019, you have kissed Visual Studio 2017 goodbye and installed Visual Studio 2019. And that comes with the toolset V142.

Solution

Either you install V141 using the Visual Studio Installer, or you tell the generated solution to use V142. I personally prefer the last one, because newer is always better, right?

Simply right-click the project in the solution that has "(Universal Windows)" behind its name, select properties, tab general, and then the problem is already pretty evident:

Simply select Visual Studio 2019 (142) for the Project Toolset and you are good to go. This setting will stay as long as you don't delete the generated project — Unity will simply change what needs to be changed, and leave as much as it can (to speed up the generation process).

Conclusion

While this was a simple fix, it can be hard to find. Hence, a simple blog about it.

Hope you learned something!

Locate (Unix) unity Build (game engine) Game engine IT app Installer (macOS) Property (programming) Blog

Published at DZone with permission of Joost van Schaik, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • How To Build a Multi-Zone Java App in Days With Vaadin, YugabyteDB, and Heroku
  • 5 Simple Tips to Keep Dockerized Apps Secure
  • How to Build a Concurrent Chat App With Go and WebSockets
  • Mastering Coroutine Execution: Yielding, Flow, and Practical Use Cases in Unity

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: