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

Find and Replace namespaces in .cs files #11

Closed
dazinator opened this issue Jun 1, 2016 · 1 comment
Closed

Find and Replace namespaces in .cs files #11

dazinator opened this issue Jun 1, 2016 · 1 comment

Comments

@dazinator
Copy link
Owner

It would be great if this tool could handle finding and replacing namespaces in source code files, to it could handle for example the namespace changes like the ones document here: https://docs.efproject.net/en/latest/miscellaneous/rc1-rc2-upgrade.html

@dazinator
Copy link
Owner Author

dazinator commented Jun 7, 2016

Microsoft.AspNet.FileProviders --> Microsoft.Extensions.FileProviders
Microsoft.AspNet.Hosting --> Microsoft.AspNetCore.Hosting
Microsoft.AspNet.Mvc.* --> Microsoft.AspNetCore.Mvc.*
Microsoft.AspNet.StaticFiles --> Microsoft.AspNetCore.StaticFiles

Microsoft.AspNet.Builder --> Microsoft.AspNetCore.Builder
Microsoft.Extensions.OptionsModel --> Microsoft.Extensions.Options
Microsoft.Extensions.WebEncoders --> System.Text.Encodings.Web
Microsoft.AspNet.Razor --> Microsoft.AspNetCore.Razor
Microsoft.AspNet.Razor.* --> Microsoft.AspNetCore.Razor.*
Microsoft.AspNet.Http --> Microsoft.AspNetCore.Http
Microsoft.AspNet.Http.* --> Microsoft.AspNetCore.Http.*
Microsoft.Data.Entity --> Microsoft.EntityFrameworkCore
Microsoft.Data.Entity.* --> Microsoft.EntityFrameworkCore.*

Microsoft.AspNet.Authorization --> Microsoft.AspNetCore.Authorization
Microsoft.AspNet.DataProtection --> Microsoft.AspNetCore.DataProtection

dazinator added a commit that referenced this issue Jun 7, 2016
Using Roslyn to update namespaces in code files from RC1 to RC2 ones. Currently only have a test that does it on a single csharp file. Need to extend the command line, to run it against all C# files in the solution.
@dazinator dazinator reopened this Jun 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant