Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create an embedded resource in a Web Site project?

Tags:

.net

asp.net

How to create an embedded resource in a Web Site project?

In a web application project I can change the 'build action' through the properties window of a file. In an Web Site project there is no properties window. I noticed, in a web application project, the .csproj file is changed when you change the build action of a file. In a Web site project there is no .csproj file of course.

Is it possible to create an embedded resource in an Web Site project?

In mainwhile, we changed the project to a web application project. But I'm still curious..

like image 840
williamve Avatar asked Oct 27 '25 03:10

williamve


1 Answers

You can't add an embedded resource, because web site projects are not pre-compiled. There is no generated dll to embed the resource in.

like image 136
Ortiga Avatar answered Oct 28 '25 18:10

Ortiga