Working with MVC4 and VS2012 , I use the Service Reference , which automatically creates the Reference.cs file. When I create, I get dozens of warnings in the form of errors that are read
'Missing XML comment for public type or member ...'
I found a similar answer here that refers to a workaround found in this blog that suggests adding the following fix to the CSProj file:
<Target Name="XamlGeneratedCodeWarningRemoved" AfterTargets="XamlMarkupCompilePass1"> <Exec Command="for %%f in (@(XamlGeneratedCodeFiles)) do echo #pragma warning disable > %%f.temp" /> <Exec Command="for %%f in (@(XamlGeneratedCodeFiles)) do type %%f >> %%f.temp" /> <Exec Command="for %%f in (@(XamlGeneratedCodeFiles)) do copy /y %%f.temp %%f" /> <Message Text="XamlGeneratedCodeWarningRemoved: @(XamlGeneratedCodeFiles)" /> </Target>
But this does not seem to work with the Reference.cs file, perhaps because it targets Xaml ? Can someone tell me how I can fix this to work with the Reference.cs file or suggest another way around this problem?
I cannot just add pragma disable to automatically generated code or disable Xml comments.
Devdave
source share