Results 1 to 4 of 4

Thread: [RESOLVED] "Publish Web" doesn't copy .svg files

  1. #1

    Thread Starter
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    Resolved [RESOLVED] "Publish Web" doesn't copy .svg files

    How can I tell Visual Studio to copy .svg files when I publish from the "Publish Web" dialog (right-click on Project and select "Publish...")? It's copying all other image files to the target directory, but is not copying .svg files.
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

  2. #2
    Frenzied Member MattP's Avatar
    Join Date
    Dec 2008
    Location
    WY
    Posts
    1,227

    Re: "Publish Web" doesn't copy .svg files

    By default it sounds like svg files have a build action of None. If you change that to Content it should get published.

    If you want to change this so that new svg files get the Content build action by default there's an excellent article here: http://blog.andreloker.de/post/2010/...ile-types.aspx

  3. #3

    Thread Starter
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    Re: "Publish Web" doesn't copy .svg files

    Thanks. That got it working.
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

  4. #4
    ASP.NET Moderator gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: "Publish Web" doesn't copy .svg files

    Glad to hear that you got this working tr333. Can you remember to mark your thread as resolved?

    Gary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width