Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6144765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:41:56+00:00 2026-05-23T18:41:56+00:00

I am adding any script file in disk (by Add Existing item > Add

  • 0

I am adding any script file in disk (by Add Existing item > Add as link), to standard mvc3project/scripts folder the file has not seen in compiled version. When i change the referenced js file’s properties, Copy to output always or change build action to content or compile the result is the same. How can i add a js file to asp.net mvc project as linked file.

Step by Step

  1. In asp.net mvc3 project there is folder named “Scripts”
  2. And i want to add a jscript file to this folder.
  3. But i dont want to add file as physically.
  4. I right click on the scripts folder. Add new item. Select the js file. And click the add as linked file.
  5. the file appears on the script folder. But when i run the site. The file could not be found by the web application.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T18:41:57+00:00Added an answer on May 23, 2026 at 6:41 pm

    Unfortunately, Visual Studio doesn’t copy linked Javascript files. The best solution I’ve seen so far is the use of a post-build action as proposed in this answer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any method available to add IDs like there is for adding a
as the title says: Anyone know about any good/simple multiple file upload script that
I'm aware of dynamic script/css loading by adding <style> or <link> tags to head
Does the folder action for when a folder item is changed not exist? I
I have a script that is automatically adding IP addresses to my.htaccess file based
TL;DR: Adding any non-built-in functions to Array.prototype AND Function.prototype will cause the IE8 native
Under what circumstances - if any - does adding programmers to a team actually
I'm a fan of extension methods in C#, but haven't had any success adding
Would there be any point in adding resx files to a distributed cache? What
Do you know any bug tracking tools that support adding bugs by sending an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.