2

I know that possible to bundle

eg.

index.html
main.css
jQuery.js
Logo.gif

into an assembly (DLL) and use it in WPF via res:// protocol, but I cannot find any project template in Visual Studio 2010/2012 to do it.

How it is possible to do this?

3
  • 1
    Your intent is completely unclear. What are you trying to do? Commented Feb 7, 2013 at 15:16
  • @HighCore I want to put simple web page into dll and using res:// protocol open this page via WPF WebBrowser control. That's it. Commented Feb 7, 2013 at 15:18
  • How would the WebBrowser control load the data from the resource? Commented Feb 7, 2013 at 15:21

1 Answer 1

3

You want to create what is called Resource File. There is wizard for creating this type of file:

File -> New -> File -> C# -> Resource File on my VS2010.

Sign up to request clarification or add additional context in comments.

5 Comments

Could u tell me how do I can access index.html in that file? I need to access it in WPF. Thank you!
@NemanjaBoric: that's not exactly helpful for the WebBrowser control.
@sixlettervariables perhaps this is more helpful. stackoverflow.com/questions/1254605, or this stackoverflow.com/questions/9934357/…. In any case, there is lot of resources (hah!) available for researching more.
wb.Navigate("res://WpfApplication12.exe/index.html"); it is not working but index,html is under main resource file...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.