Personal tools
You are here: Home For Developers Tutorials How to build existing extension page 6

page 6

Step 6. Fix duplicate assembly information


Build solution (press F6). As expected, you should get "Build failed" message in status bar and 4 errors in Error List table.  


Error List


In Solution Explorer, click on Properties and open AssemblyInfo.cs
Double-click on each error in Error List to its location. Visual Studio will automatically underlines offending attributes. 

Project Designer > Application page


Edit AssemblyInfo.cs to group 4 offending attributes together and add #if directive around them
     #if !ASSEMBLY_INFO_FILE_ADDED     // if AssemblyInfo file is NOT added
     #endif

Project Designer > Application page


In Project Designer, select Build Property page:
     In Configuration pull-down box, select All Configurations
     In Conditional compilation symbols text box, enter "ASSEMBLY_INFO_FILE_ADDED"

Project Designer > Build page


Rebuild solution (F6)


< Page 5 | Page 6 | Page 7 >
Document Actions