Jump to content
Sign in to follow this  
c0d3r

[MSBuild Warning] There is a circular reference involving the import of file ...codgear.delphi.targets...

Recommended Posts

Sometimes when I ctrl+enter on some units in uses clause, I was keeping get:

 

[MSBuild Warning] There is a circular reference involving the import of file "c:\program files (x86)\embarcadero\studio\21.0\Bin\CodeGear.Delphi.Targets". This file may have been imported more than once, or you may have attempted to import the main project file. All except the first instance of this file will be ignored.

 

What is it about,  any idea how to get rid of it?  some of these unit are used by the project only.

Share this post


Link to post

Sometimes the IDE inserts two includes for CodeGear.Delphi.Targets (I think it's a bug in the updating code for projects):

    <Import Project="$(BDS)\Bin\CodeGear.Delphi.Targets" Condition="Exists('$(BDS)\Bin\CodeGear.Delphi.Targets')"/>

One, with the condition, one without.

Not sure this has something to do with the message though.

  • Like 1

Share this post


Link to post
11 hours ago, dummzeuch said:

Sometimes the IDE inserts two includes for CodeGear.Delphi.Targets (I think it's a bug in the updating code for projects):


    <Import Project="$(BDS)\Bin\CodeGear.Delphi.Targets" Condition="Exists('$(BDS)\Bin\CodeGear.Delphi.Targets')"/>

One, with the condition, one without.

Not sure this has something to do with the message though.

Good catch!.  Removing the one without condition seems made it working.  Thanks.

Edited by c0d3r

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×