2012-04-11 8 views
5

मेरे पास एमवीसी कोंट्रिब और एमवीसीएसकॉफल्ड का उपयोग करके एक नई परियोजना बनाई गई है। सब कुछ गतिशील संकलन के साथ ठीक काम करता है। जब मैं प्रोजेक्ट फ़ाइल में दृश्य संकलन चालू करता हूं, हालांकि संकलन टूट जाता है।एमवीसीबिल्ड व्यूज़ के साथ बिल्डिंग रेजर = सच असफल

The name 'model' does not exist in the current context 
'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'LabelFor' and no extension method 'LabelFor' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using directive or an assembly reference?) 
'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'EditorFor' and no extension method 'EditorFor' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using directive or an assembly reference?) 
'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'ValidationMessageFor' and no extension method 'ValidationMessageFor' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using directive or an assembly reference?) 

यह त्रुटियों की एक ही तरह अगर आप left out the web.config file from the Views folder प्राप्त होता है, लेकिन वह उपस्थित है। मेरे पास पहले से ही Phil Haack's fix है, इसका कोई फायदा नहीं हुआ है। MSBuild MVC3 उपहारों को क्यों नहीं ढूंढ रहा है?

+0

थोड़ा देर हो सकती है, लेकिन क्या आपने http://stackoverflow.com/q/4725387/195550 देखा? –

उत्तर

1

मैंने पाया कि मैंने गलती से system.web अनुभाग को मेरी कॉन्फ़िगरेशन फ़ाइल में डुप्लिकेट किया है जो एक ही त्रुटि का कारण बनता है।

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