Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Saving a file in an external/referenced project and refreshing the page doesn't work in beta5 #1912

Closed
glen-84 opened this issue May 20, 2015 · 6 comments
Assignees
Milestone

Comments

@glen-84
Copy link

glen-84 commented May 20, 2015

My global.json looks something like this:

{
    "projects": [ "src", "test", "D:/Programming/Projects/ASP.NET/TempTest4/src" ],
    "sdk": {
        "version": "1.0.0-beta5-11749"
    }
}

If I modify a class in the TempTest4 project and refresh the page, the change is not visible. It shows up if I stop the site in IIS Express and then refresh.

This works with beta4.

Steps to reproduce:

  1. Create a new ASP.NET Web Application (ASP.NET 5 -> Web Site, name: "Temp1"). The current SDK version is 1.0.0-beta5-11781.
  2. Replace "beta4" with "*" in project.json.
  3. Delete the two migration files.
  4. Remove "Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0-*" from package.json (there is no version yet for beta5, and it's no longer possible to use comments in project.json).
  5. Comment out app.UseBrowserLink(); in Startup.cs.
  6. Add an IApplicationEnvironment appEnv parameter to the constructor in the Startup class, and pass appEnv.ApplicationBasePath to the Configuration constructor.
  7. Open another instance of VS2015RC, and create a new Class Library solution (name: "Temp2").
  8. Add a public static method to Class1 named GetString that returns a string ("Hello").
  9. In the web application solution, add D:/path/to/Temp2/src to projects in global.json.
  10. Add "Temp2": "" to project.json, and the Temp2 project will show up in the solution.
  11. Add @Temp2.Class1.GetString() somewhere in Index.cshtml.
  12. Run the web application (Ctrl+F5), and it should print "Hello".
  13. Change the string returned from the static method in Class1.
  14. Refresh the page, and the new string will not be printed.
  15. Stop the site in IIS Express, and then refresh the page again, and the new string will be printed.

Moved from dotnet/aspnetcore#592.

@muratg
Copy link
Contributor

muratg commented May 21, 2015

Looks like a regression.

@glen-84
Copy link
Author

glen-84 commented May 21, 2015

@muratg Will this not be fixed in beta5?

@davidfowl
Copy link
Member

@glen-84 does D:/Programming/Projects/ASP.NET/TempTest4/src have a global.json with a specific dnx version in it? If yes, is it the same as the main solution?

@glen-84
Copy link
Author

glen-84 commented May 25, 2015

The parent folder has a global.json, yes, and the SDK versions are the same (last tested with 1.0.0-beta5-11781).

@BrennanConroy
Copy link
Member

Fixed: f1b1379

@cherrydev
Copy link

Ahh, found this before making my own bug report. I guess this barely missed the mark for making into beta5 actual? That's a shame, I had automatically re-running unit tests all set up and working in beta4!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants