c# - Show missing PartialView as a build error -


I am reconfiguring our ideas at work and taking them to more suitable places.

We are currently arranging our ideas in our own folders within the view folder, we have to refer to our ideas using the full path in RenderView.

Is there a way to throw a build build error, if I do not have the presence of a visual studio if the Anx file is present in the Rendereparty method?

There is an error shown in run time, although I should be part of this process process.

Thanks for any advice

View locations are resolved only on runtime I can not really see how this can be done, as long as you write a few custom steps in MSBuild that will analyze the source code and check the existence of related footage files but it will be a daunting task.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -