Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) error : Designtime build failed for project 'xxx' - Set environment variable TRACEDESIGNTIME = true (Read 3407 times)
Christopher Cooper
Junior Member
**
Offline


Posts: 22
Joined: Jul 13th, 2020
error : Designtime build failed for project 'xxx' - Set environment variable TRACEDESIGNTIME = true
Mar 27th, 2024 at 5:54pm
Print Post  
Hi All,

Since having Visual Micro, every now and then this error message occurs in my projects. 

Please see attached.

The problem causes the drop downs in the main code ino window, to go blank, then the error occurs multiple times in the Solutions window.

The only fix I have found is to create a new blank solution, copy and paste the code, add all the library's and associated files back in and then it works again.

I have however concluded that the problem occurs when I change, delete and add libraries. 

I have check the help files, searched online to see what I am doing to cause this, but I haven't found a solution. Its just happened again and its time I got it fixed!

Thanks.

« Last Edit: Mar 27th, 2024 at 11:13pm by Christopher Cooper »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: error : Designtime build failed for project 'xxx' - Set environment variable TRACEDESIGNTIME = true
Reply #1 - Mar 27th, 2024 at 9:18pm
Print Post  
Thanks for the report.

Can you confirm which version of Visual Studio and Visual Micro you are currently using?

Can you also attach the build log as a text file with the settings enabled as shown at the top of the page, and if possible one of the broken projects as a ZIP file?
  
Back to top
IP Logged
 
Christopher Cooper
Junior Member
**
Offline


Posts: 22
Joined: Jul 13th, 2020
Re: error : Designtime build failed for project 'xxx' - Set environment variable TRACEDESIGNTIME = true
Reply #2 - Mar 27th, 2024 at 11:08pm
Print Post  
Hi,

Thanks for replying.

Please find attached build properties. I didn't do this to begin with, as it has always happened, on all versions. Plus it has happened on just about all projects.

Version Info as follows:

Microsoft Visual Studio Community 2022 Version 17.9.4
VisualStudio.17.Release/17.9.4+34714.143
Microsoft .NET Framework
Version 4.8.09032

Installed Version: Community

Visual C++ 2022   00482-90000-00000-AA920
Microsoft Visual C++ 2022

Arduino IDE for Visual Studio by Visual Micro   22.0

Visual Micro is an Arduino Compatible IDE for Visual Studio 2022. For more information and forum please visit www.visualmicro.com.

ASP.NET and Web Tools   17.9.199.22661
ASP.NET and Web Tools

Comment

It would just be nice to know what triggers it so I cant make sure I do not do it! As stated in the original post, it seems to happen when I change libraries. For example this project, I am using Edge Impulse and building a model. This requires me to change the model in Edge Impulse and then rebuild the library. Once I did this, deleted the old library from the Arduino IDE (while Visual Studio was closed), readded the latest Edge Impulse library, it started to happen. This is what has finally led me to link the issue to changing libraries, but I could be wrong.

Regards,

Christopher
« Last Edit: Mar 27th, 2024 at 11:12pm by Christopher Cooper »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: error : Designtime build failed for project 'xxx' - Set environment variable TRACEDESIGNTIME = true
Reply #3 - Mar 28th, 2024 at 10:25am
Print Post  
Thanks for the log and the update around this.

Can you set the TRACEDESIGNTIME Environment variable to true, and start up the affected project again.  This should generate a log in the %TEMP% folder on your PC, which will be useful for us to review:
https://learn.microsoft.com/en-us/visualstudio/ide/visual-cpp-intellisense-confi...
  
Back to top
IP Logged
 
Christopher Cooper
Junior Member
**
Offline


Posts: 22
Joined: Jul 13th, 2020
Re: error : Designtime build failed for project 'xxx' - Set environment variable TRACEDESIGNTIME = true
Reply #4 - Mar 28th, 2024 at 12:47pm
Print Post  
Hi,

Please see attached.

Regards,

Christopher
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: error : Designtime build failed for project 'xxx' - Set environment variable TRACEDESIGNTIME = true
Reply #5 - Mar 28th, 2024 at 1:24pm
Print Post  
Thanks for the log, we can reproduce what looks to be the same problem.

Currently you have the library installed in the normal Sketchbook\libraries folder, but added to your Solution as a Shared Project.

If you remove the Shared Project from your Solution in the Solution Explorer, it should stop the error from occuring.

It is also worth checking the vMicro > Add Library > Library Advanced > Create Shared Project When Including Libraries setting is OFF, which will stop vMicro automatically creating the Shared Projects when libraries are added from the Add Library Menu.
  
Back to top
IP Logged
 
Christopher Cooper
Junior Member
**
Offline


Posts: 22
Joined: Jul 13th, 2020
Re: error : Designtime build failed for project 'xxx' - Set environment variable TRACEDESIGNTIME = true
Reply #6 - Mar 28th, 2024 at 2:30pm
Print Post  
Hi,

Thanks for looking into this.

The latter of your comments was set, which I have now unset.

I have also removed the libraries form the Solutions Explorer, please see screen shot attached.

However, this hasn't solved the problem and the drop downs are still blank as per usual.

I have attached another log file for reference.

Soz
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: error : Designtime build failed for project 'xxx' - Set environment variable TRACEDESIGNTIME = true
Reply #7 - Mar 28th, 2024 at 2:35pm
Print Post  
Have you saved the solution and restarted Visual Studio since removing the references?

Could you attach a screenshot showing the blank dropdowns, with the vMicro menu open as well?
  
Back to top
IP Logged
 
Christopher Cooper
Junior Member
**
Offline


Posts: 22
Joined: Jul 13th, 2020
Re: error : Designtime build failed for project 'xxx' - Set environment variable TRACEDESIGNTIME = true
Reply #8 - Mar 29th, 2024 at 11:19am
Print Post  
Hi Simon,

Yes, multiple times. 

As for the drop downs, please see attached.

Regards,

Christopher
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: error : Designtime build failed for project 'xxx' - Set environment variable TRACEDESIGNTIME = true
Reply #9 - Mar 29th, 2024 at 4:48pm
Print Post  
Thanks for the info. please zip and email your vcxproj file.
  
Back to top
IP Logged
 
Christopher Cooper
Junior Member
**
Offline


Posts: 22
Joined: Jul 13th, 2020
Re: error : Designtime build failed for project 'xxx' - Set environment variable TRACEDESIGNTIME = true
Reply #10 - Apr 1st, 2024 at 12:02pm
Print Post  
Hi,

I presume you just meant that file and not the entire project, which I have attached.

Just to add to the mystery, upon opening the solution this morning, the drop downs are populated. However after I build the solution, the error message appears in Solution output window and the drop downs are no longer populated.

Thanks as always.

Regards,

Christopher
« Last Edit: Apr 2nd, 2024 at 3:44pm by Christopher Cooper »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: error : Designtime build failed for project 'xxx' - Set environment variable TRACEDESIGNTIME = true
Reply #11 - Apr 2nd, 2024 at 3:02pm
Print Post  
Cant see an attachment on your last message?
  
Back to top
IP Logged
 
Christopher Cooper
Junior Member
**
Offline


Posts: 22
Joined: Jul 13th, 2020
Re: error : Designtime build failed for project 'xxx' - Set environment variable TRACEDESIGNTIME = true
Reply #12 - Apr 2nd, 2024 at 3:44pm
Print Post  
Doh!

Now attached.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: error : Designtime build failed for project 'xxx' - Set environment variable TRACEDESIGNTIME = true
Reply #13 - Apr 3rd, 2024 at 11:16am
Print Post  
Thanks for the file.

Can you try closing VS, and replacing the VCXPROJ with the attached file?

After reopening the solution the errors should no longer show in the output window.

If you still have issues with the drop downs, can you attach a screenshot of them showing as blank? (the previous screenshot appeared to show them all populated).
  

Please Register or Login to the Forum to see File Attachments
Back to top
IP Logged
 
Christopher Cooper
Junior Member
**
Offline


Posts: 22
Joined: Jul 13th, 2020
Re: error : Designtime build failed for project 'xxx' - Set environment variable TRACEDESIGNTIME = true
Reply #14 - Apr 3rd, 2024 at 11:24am
Print Post  
Hi,

Many thanks - it is working. However, can you tell me what I am doing wrong to cause this problem, as it happens on multiple projects? Or did your earlier requests solve it generally?

For reference you asked:

If you remove the Shared Project from your Solution in the Solution Explorer, it should stop the error from occuring.

It is also worth checking the vMicro > Add Library > Library Advanced > Create Shared Project When Including Libraries setting is OFF, which will stop vMicro automatically creating the Shared Projects when libraries are added from the Add Library Menu.


Thanks  Smiley
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: error : Designtime build failed for project 'xxx' - Set environment variable TRACEDESIGNTIME = true
Reply #15 - Apr 3rd, 2024 at 11:51am
Print Post  
The root cause of the issue is the Library Shared Project being added to the solution, and it not being removed when the library is updated.  This is because updating the library deletes the Shared Project VCXITEMS file which is added to the Library folder, so the reference in the solution is invalid.  Removing the project in Solution Explorer doesn't seem to fully remove the reference in the main project (though it isn't displayed).

You can manually edit the VCXPROJ file in a text editor if this happens again, and remove the references in the <ImportGroup Label="Shared"> section (if you compare the file you uploaded to the one we sent back this is all that changed).

If you do want to capture a specific library for a project, this can be done using the Special Folders shown on the below page, and allows you to update the files in file explorer with simple delete/copy/paste operations, without any potential for references etc to become confused in the project/solution:
https://www.visualmicro.com/page/Special-Folders-and-Portability.aspx
« Last Edit: Apr 3rd, 2024 at 11:53am by Simon@Visual Micro »  
Back to top
IP Logged
 
Christopher Cooper
Junior Member
**
Offline


Posts: 22
Joined: Jul 13th, 2020
Re: error : Designtime build failed for project 'xxx' - Set environment variable TRACEDESIGNTIME = true
Reply #16 - Apr 3rd, 2024 at 12:05pm
Print Post  
Thank you very much for your efforts.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint