Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,

Here is my Test.proj file code.
HTML
<project defaulttargets="Build">
	xmlns="http://schemas.microsoft.com/developer/msbuild/2003">    
    <import project="<br" mode="hold" />      "C:\Program Files\MSBuild\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"/>            
     <target name="Build">      
        <!-- Clean, then rebuild entire solution -->
        <msbuild projects="D:\Mymath\Mymath.sln" />
        <exec command=""C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\mstest.exe" /></target></project>

When i executed this code from ccnet.config i got below error:error MSB4025: The project file could not be loaded.
Please tell me solution to rectify this error.
Posted
Updated 14-Mar-17 21:32pm
v2
Comments
walterhevedeich 3-Oct-11 3:36am    
I have modified your question and removed some unnecessary tags. Please go over the code once again to make sure that I didn't remove some of the actual content.
skumarn 3-Oct-11 5:15am    
Hi walterhevedeich,

I had written this code actually for build automation of test project that i had cretaed for my Mymath.sln, which is windows application. Please tell me steps that to perform unittest for above solution using NUnit.

1 solution

Um. That doesn't look right at all:
HTML
<project defaulttargets="Build">
	xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
Has a tag close ">" on the first line, and on the second.
So does the next bit:
HTML
<import project="<br" mode="hold" />      "C:\Program Files\MSBuild\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"/>
That isn't valid XML at all.

What I would suggest is that you get Visual Studio to create you a basic .proj file and edit that instead of trying to manually create it, since if that is your whole file, there is a whole lot missing - which would explain why it can't be loaded.
 
Share this answer
 
Comments
Graeme_Grant 15-Mar-17 3:34am    
You fell into my trap of not checking dates .... :P
OriginalGriff 15-Mar-17 5:59am    
AH! The walterheverdeich update brought it back to the top of the unanswered list. Didn't spot that...
Oops. :O
CHill60 15-Mar-17 6:07am    
Walter's update was back in 2011. I think this might have been a solution removed or didn't quite get here because it got kicked out of moderation. I got caught yesterday with what I thought was a dodgy filter I had on but went back to Dec 2015.
Must be our age ;-P
Graeme_Grant 15-Mar-17 6:19am    
I've had similar from time to time as well ... just thought someone replied as solution and deleted it afterwards realizing it was old...
OriginalGriff 15-Mar-17 6:21am    
Wierd: it's currently marked as

Updated 2hrs 15mins ago
walterhevedeich41.7K
v2

You're probably right though - a "kicked out of moderation" problem.
I'll mention it in sugs'n'bugs, see if we can get the "bring to top" fixed.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900