Please report any bugs to the github repo.
Visual Studio extension authors suffers of lack of feedback. Please share your feelings and gratitude. Choose one or few available options:
- Please gift a ★★★★★ rating for this VSIX in the VS Marketplace.
- Gift a ★ to the github repo.
- If you are enjoying FreeAIr to the enough level to donate, there are many small cancer patients that need your help. Please provide your help them!
- A VSIX is to provide access to AI for free for everyone who is using Visual Studio with no country-based ban. Local LLMs are supported too.
- Visual Studio extension for quick watch window which allows to debug and edit multilines expressions.
- If you are using plain SQL inside you code base you may want to validate these queries against your DB schema right inside Visual Studio. ReSequel does exactly that.
- This extension puts Roslyn metadata of your project into the in-memory sqlite database and allows to you to execute queries to the database.
- The faster way to add strings to your multilanguage resx files. Just install the extension, select the text and press Alt+J.
- A Visual Studio extension which creates codelenses allows you to go to sync sibling method for async methods and vice-versa even if sibling method is in different file or code generated.
My others extensions lives here.
- Visual Studio 2022 17.14 and Visual Studio 2026. The Marketplace does not accept the API version 18.0 as the lowest one, so the extension targets 17.14 and newer and is compiled against the Roslyn of Visual Studio 17.14; it is installed into Visual Studio 2022 17.14 again.
- The run report. The wizard does not close right after the run anymore: the last step
shows what has been adjusted, what has been left (blocked, skipped, not processed) and
what was done to the other files, and the console utility prints the same text.
adjustns --report <path>writes it to a file (Markdown, or JSON by the.jsonextension). - Text references. The names of the moved types that are written as a text (a string passed
to
Type.GetType,Activator.CreateInstanceornew ResourceManager(...), any other string that is the full name, a comment) used to keep the old namespace and broke the program at run time. The full names are searched now, every match gets a confidence score with the list of its reasons (Certain, Likely, Possible, Unlikely), and the aggressiveness decides which levels are changed:Off,ReportOnly,Conservative,Balanced(the default),Aggressive. Console utility:--text <mode>,--text-kinds <list>, and--dry-runlists the matches with their scores. A solution can override the mode inadjust_namespaces_settings.xml. - The xml configs (
app.config,web.config,nlog.config, ...) and theappsettings*.jsonfiles are searched too (type=,$type,Using, any value that is a full name); other xml and json files can be named inadjust_namespaces_settings.xml. A$typeadds a note to the report about serialized data that may exist elsewhere. - The text references are searched in the
.cshtmland.razordirectives, in the<StartupObject>andCustomToolNamespaceof project files and in the.settingsfiles too; the files are changed as a text, so their encoding, byte order mark and line breaks stay. - The Error List and the build check. The text references a run has left and the new
compilation errors are put into the Error List of Visual Studio as warnings. The optional
build check (
Run the build checkin the options,adjustns --build-check) counts the compilation errors of the affected projects before and after the run and lists the new ones in the report. - The wizard has a collapsible
Text referencesblock on the selection step (the aggressiveness and the kinds of files) and a new review step: every text reference is a row with a level badge, the line with the name highlighted,old -> newand a check box preset by the aggressiveness; the tooltip says why the score is what it is. The options page (Tools -> Options -> Adjust Namespaces) is visible now: the default aggressiveness, the kinds of files and when to show the report.
- Visual Studio 2026 (18.x) only. The extension is compiled against the Roslyn of Visual
Studio 2026 and is not installed into Visual Studio 2022 anymore; 0.6.0 is the last version
for it. The extension is called
Adjust C# Namespacesnow, without the year. - Fixed the file scoped namespaces (
namespace A.B;), which the published (Release) builds of the extension did not adjust at all: the code was compiled under a symbol only the Debug build defined. - Fixed the extension members of C# 14 and C# 15 (an extension property, a static extension member, an extension operator and indexer): moving their static class left the callers without the using clause, and a moved file lost the access to the ones of its old enclosing namespace.
- Fixed a type referenced by a nameless tuple element (
(Cat, int), also among the case types of a union), which was not fixed when it was moved. - Fixed the file-local types of C# 11 (
file class Helper), which were reported as a type name conflict although the compiler allows another type of the same name in another file. - A namespace a project file imports (
<Using Include="A.B" />) is not emptied anymore: such a file is blocked with the reason, instead of breaking the next build. - Windows Forms: a form chosen together with its
.Designer.cs(or any partial class split over two files) is moved as a whole; the second half was reported as a type name conflict and the class was torn apart. A file whose partial class has a part which is not chosen is blocked. - Fixed
Properties.Settings.Defaultand similar names of a child namespace of the old enclosing namespace, which were lost when a file left that namespace. - The names of a moved file are checked against its new namespace: a relative
using Fourth;inside the namespace declaration, a full name hidden by the new namespace (First.Second.ThinginsideTarget.First), a type name which would silently mean a type of the new namespace or become ambiguous (CS0104) are written out in full. - A using clause of the target namespace is not added to a file in which it would make another name ambiguous; the reference to the moved type is qualified instead.
nameofof an emptied namespace is replaced with the string it gives.- WinUI: the
Programclass the build generates out ofApp.xamldoes not keep the old namespace of a movedApp.xaml.csalive anymore (ausingof it broke the next build). - Fixed the
[assembly: XmlnsDefinition(uri, "A.B")]attributes of WPF, Avalonia and MAUI (including the global xmlns of .NET MAUI 10), which kept pointing to the old namespace. - Fixed the Avalonia style selectors (
Selector="local|MyButton"), which were not rewritten. - Xaml: fixed the single quoted attributes, the prefixes with a hyphen, a CLR namespace as the
default xmlns of an element, a prefix declared again on a nested element, a new mapping
declared on a nested element, a namespace of the same name in another assembly, a nested
type of the same name as another class, a markup extension written as an element without its
Extensionsuffix, and a MAUI page withoutxmlns:x. The xmlns clauses which were unused before the move are not removed anymore. - Xaml: a new xmlns clause is named after its namespace (
xmlns:viewsforApp.Views,views2whenviewsis taken) instead of a randomViewsd3999903, and is written like the clauses around it (on a line of its own with their indentation); a removed clause takes its line with it. - Fixed a xaml whose code behind lies in another folder or in the global namespace: the
x:Classfollows the class of its code behind and nothing else. - Global undo: the whole adjusting run is one linked undo transaction, so a single Ctrl+Z
reverts every touched file, including the files which were never opened in the editor.
The
Open affected files to enable Undocheckbox of the wizard is gone with it. - Explicit support for MAUI and Avalonia xaml: the
.axamlextension is treated like.xaml, andxmlns:…="using:…"mappings are rewritten in the same form (Avalonia's preferred syntax; also used by MAUI). Covered by automated tests; verified by buildingTests/Standard/TestMauiApp(Windows) and a minimal Avalonia desktop app on this machine. - A file which cannot be adjusted safely (a type name conflict in the target namespace, a
linked file, a file several projects compile, contradictory target frameworks) does not
stop the whole run anymore: it is listed with the reason on the second step of the wizard
(and as an
error:line by the console utility) and the other files are adjusted as usual. - Fixed the conflict check which missed the enums and the delegates of the adjusted file.
- Fixed an extension method of the old enclosing namespace called as a member access
(
value.Twice()), which was left dangling after the move. - Fixed a case sensitive folder comparison which treated a file of the project folder as a linked one on Windows.
- Fixed two files of one run which could land the same type name into the same namespace.
- Fixed the renaming of a root namespace
Awhich also rewrote a nestednamespace Ainside another wrapper (MyApp.AbecameMyApp.MyApp). - Fixed the duplicated
using X.Y;which was added next to an existingusing global::X.Y;. - Automated tests for C# files inside a
sqlproj(theRootNamespace/ folder chain and the fixed references), matching the sampleTests/Standard/DatabaseProject. - The console utility
adjustnstargets .NET 10 and is built over Roslyn 5.9, which knows the C# 15 preview features (the unions, the closed classes, the extension indexers). It needs the .NET 10 SDK now; the adjusted projects may still target any framework.
- Added the console utility
adjustns: the same adjusting as the extension, over anMSBuildWorkspace, with no Visual Studio required (usable on a build server). - Split the Visual Studio independent core into
AdjustNamespace.CoreShared, so the extension, the tests and the console utility share one codebase. - Fixed the
usingclause of the old namespace of a moved file: types of the child namespaces (including the generated code behind of a xaml file) were counted as keeping the parent alive, so a helper project gotusing FreeAIr.UI;while onlyFreeAIr.UI.NestedCheckBoxstill existed there and the clause did not compile. - The detailed
[Adjust]diagnostics of the core go throughAdjustLogand are written into%TEMP%\AdjustNamespace.cli.logwhen the utility is started with--debug.
- Added the support of the arm64 Visual Studio: the extension refused to install there, because its manifest declared the amd64 architecture only.
- Added an automated test suite and fixed a lot of the errors it has found.
- Fixed the XAML references which are written neither in a tag nor in an
{x:Type}/{x:Static}markup extension: an attribute value, an attached property, a custom markup extension,x:TypeArguments. - Fixed the placement of the generated
usingclauses in the files which declare several namespaces. - Fixed the rewritten names which were resolved to a wrong type.
- Fixed the moving of the types of a file which declares one and the same namespace in several ways.
- The files which more than one project compiles are not adjusted anymore: there is no target namespace which suits all of them.
- Multi target projects: every target framework of a file is taken into account now.
- Added the support of the C# unions (
public union Pet(Cat, Dog);): a case type which is moved into another namespace was silently left behind and the union stopped compiling. - Fixed the references an adjusted file itself makes to the types of its old enclosing namespace: such a reference relies on the file being nested inside that namespace and was left dangling once the file was moved out of it.
- Fixed the references written in the documentation comments (
<see cref="Class1"/>): such a reference was skipped silently, so it kept pointing to the old namespace while theusingclause it resolved through was removed. - Added the logging of the adjusting (the searched types, the found references and the scheduled changes) and of the Roslyn version in use.
- Added the documentation of the internals.
- Improved usability around target namespace regexes.
- Added built in target namespace regexes.
- Added release notes gold bar.