After adding new class file to App_Code, build action is Content instead of Compile

StackOverflow https://stackoverflow.com/questions/5950968

  •  07-11-2019
  •  | 
  •  

Вопрос

In VS2008, I am adding new classes to a web project.

When I right-click on App-Code -> Add -> New Item -> Class ...

The build action for the newly created item is set to content instead of compile. This seems like it would be a problem with the template. I've found several others through google who have run into this issue, but nobody seemed to have found a more permanent solution, other than "change it from content to compile after creation."

My question: Does anyone know of a fix for this, official or otherwise?

Нет правильного решения

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top