Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File content not refresh #38

Closed
funky81 opened this issue Jun 3, 2018 · 6 comments
Closed

File content not refresh #38

funky81 opened this issue Jun 3, 2018 · 6 comments

Comments

@funky81
Copy link

funky81 commented Jun 3, 2018

File content (*.cs) not refresh after file generated from EFCorePowerTools.
I have to re-open the file in order to see the changes.
I dont know which issue is this, either VS2017 or EFCorePowerTools, but one thing for sure, if I change file content outside VS2017 then back to see it in VS2017 (already opened before), it will ask me to re-open the file

Steps to reproduce

  1. Open source code (tableX.cs - for example). tableX is generated file from SQL Server database with EFCorePowerTools
  2. Modify SQL Server table
  3. Generate again with EFCorePowerTools
  4. Dont see any differences
  5. Close the tableX.cs then open again.
  6. See the differences

Further technical details

EF Core Power Tools version: 1.0.604.0
Database engine: SQL Server 2017 CU5 - Docker Version
Visual Studio version: VS2017 15.7.3 and VS2017 v15.8 preview 1

@ErikEJ
Copy link
Owner

ErikEJ commented Jun 3, 2018

Yes, I have seen the same behaviour, in particular with the new .NET Core (SDK based) project type. I will investigate if I am doing something wrong.

What type of project (.csproj file) do you have?

@funky81
Copy link
Author

funky81 commented Jun 3, 2018

Currently I'm using Console .NET core project + ASPNET .core project.
Both behave the same result

@ErikEJ
Copy link
Owner

ErikEJ commented Jun 3, 2018

What happens if you try a old school C# class library?

@tonysneed
Copy link
Contributor

I think this may be an issue with folder-based projects in VS 2017.

@ErikEJ
Copy link
Owner

ErikEJ commented Jun 24, 2018

Yes, but I think I should maybe always call .AddFromFile

@ErikEJ
Copy link
Owner

ErikEJ commented Mar 10, 2019

Closing, as this seems to be a fixed VS bug

@ErikEJ ErikEJ closed this as completed Mar 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants