Share this article

Improve this guide

How to Fix Windows.Storage Namespace Not Found Error

Add references to UWP dlls and winmd manually to access APIs

4 min. read

Updated onOctober 4, 2023

updated onOctober 4, 2023

Share this article

Improve this guide

Read our disclosure page to find out how can you help Windows Report sustain the editorial teamRead more

Key notes

When trying to build a UWP app you may sometimes realize that the Windows.Storage namespace is not found.

On a closer look, this issue arises mostly due to an error on your end, and that’s what we will discuss in further sections. But, if theUWP apps lag & stutter on your Windows 11 PC, you can refer to our post for some effective solutions.

What is Windows.Storage namespace?

What is Windows.Storage namespace?

Windows.Storage namespace is a collection of Windows APIs that offers classes for managing files, folders, and application settings.

The Microsoft official web page also explainshow to use the objects in Windows.Storage namespace.

Why is Windows.Storage namespace not found?

Sometimes, while using Visual Studio you may encounter an issue like Windows.Storage namespace not available or not found. This could be due to any of the following reasons:

Note that the System.Windows.Storage is not the same as Windows.Storage. If the error message reads System.Windows.Storage (part of .NET & the root namespace for WPF), it’s different from Windows.Storage (root namespace for WinRT, the primary API for UWP apps).

How can I fix Windows.Storage Namespace Not Found error?

How can I fix Windows.Storage Namespace Not Found error?

1. Add the references to UWP DLLs and WINMD files manually

So, if you are unable to access Windows.Storage namespace, it could be possible that you have not added the reference to the proper package.

In this situation, you may feel that Windows.Storage namespace is not found. You would need to download the package following the above steps.

You can now build your own WPF application location-aware by calling on the Geolocator class inWindows.Devices.GeolocationAPI.

At the same time, you can also use the asynchronous pattern in UWP. This is because the classes and methods you usually consider as UWP code is now incorporated with classes and methods from WPF.

But, if theWindows.storage.dll crasheson your Windows PC, we recommend a list of solutions that may help you fix the issue quickly.

2. Use the object browser correctly

This will add the reference to thePortable Libraryproject, and you can now use yourStorageFolderinClass1.cs.

Alternatively, if you do not want to install the Windows Store at this moment, but simply want to use some of those Windows APIs, you can get them from your app. How?

Nevertheless, you can achieve this by using a NuGet package, also called asUwpDesktop. Toinspect the source code, you can visit GitHub.

If you have any other queries related to a missing Windows API, let us know in the comments section below.

More about the topics:visual studio,Windows 11

Madhuparna Roy

A diploma holder in computers and with a keen interest in technology, Madhuparna is passionate about writing How-to guides and helping people solve the most intricate Windows issues.

It all started with the evolution of mobile phones and Google, and that has now settled with Windows.

User forum

0 messages

Sort by:LatestOldestMost Votes

Comment*

Name*

Email*

Commenting as.Not you?

Save information for future comments

Comment

Δ

Madhuparna Roy