5

मेरे पास एक क्रूज़ नियंत्रण सर्वर है जो एक वीएम पर निर्माण चला रहा है। मैंने जो कुछ किया वह पर्सफोर्स से गिट तक स्रोत नियंत्रण बदल गया था, और बिल्ड अब असफल रहा है।क्रूज़ कंट्रोल .Net अपवाद लेखन msbuild-results.xml

CCNet कॉन्फ़िग

<tasks> 
    <msbuild> 
     <executable>C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe</executable> 
     <workingDirectory>c:\Build\Pcp_Main</workingDirectory> 
     <buildArgs>/v:d Pcp.proj /target:Clobber;Build /property:Configurations="Debug;Release" /property:NUnitRedirectConsoleOutput=1</buildArgs> 
     <logger>C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MSBuild.dll</logger> 
     <timeout>2700</timeout> 
    </msbuild> 
</tasks> 

लॉग बिल्ड

Done Building Project "c:\Build\Pcp_Main\Pcp.proj" (Clobber;Build target(s)). 

Build succeeded. 
    0 Warning(s) 
    0 Error(s) 

Time Elapsed 00:01:32.39 
MSBUILD : error MSB4015: The build stopped unexpectedly because the "ReusableLogger" logger failed unexpectedly during shutdown. 
System.IO.DirectoryNotFoundException: Could not find a part of the path 'c:\Build\Pcp_Main\Artifacts\msbuild-results-2d082e8c-0e88-4c0b-9a6b-aa0e3094cab9.xml'. 
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 
    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath) 
    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) 
    at System.Xml.XmlDocument.Save(String filename) 
    at ThoughtWorks.CruiseControl.MSBuild.XmlLogger.Shutdown() 
    at Microsoft.Build.Evaluation.ProjectCollection.ReusableLogger.Shutdown() 
    at Microsoft.Build.BackEnd.Logging.LoggingService.ShutdownLogger(ILogger logger) 
</build> 

फ़ोल्डर c: \ बिल्ड \ Pcp_Main कलाकृतियों \ मौजूद है और उपयोगकर्ता का निर्माण चल रहा है फ़ोल्डर लिखने की एक्सेस है \ ।

मैंने लॉगिंग डीएल को Rodemeyer.MsBuildToCCnet.dll में बदलने का भी प्रयास किया है और मुझे एक ही अपवाद मिलता है।

परियोजना बिना किसी समस्या के कमांड लाइन से भी बनती है।

उत्तर

6

इस मुद्दे में बिल्ड फ़ोल्डर के अंदर कलाकृतियों फ़ोल्डर था। बिल्ड फ़ोल्डर के बाहर इसे स्थानांतरित करने से समस्या हल हो गई।

+0

इस त्रुटि के लिए सभी स्टैक ओवरफ्लो खोज रहा था लेकिन समाधान नहीं मिला। अब मैंने इसे खुद पाया और कुछ और खोज रहा था ... और यह पाया ... जब जीवन आपको नींबू देता है ..... – spankmaster79

+0

खुशी है कि इससे किसी की मदद की! – James

+0

हम इसे प्राप्त कर रहे थे क्योंकि हमारे निर्माण की शुरुआत में हम पिछले निर्माण की सफाई कर रहे थे, जिसमें एमएसबिल्ड लॉग फ़ाइल शामिल थी। उफ़। –

संबंधित मुद्दे