I want to use the Azure.storage.file.shares package and its dependent packages in my c++ application. However is try to download the same from nuget package manager, I get error as "Could not install package 'Azure.Storage.File.Share'. You are trying to install this package into a project that targets 'native,Version=v0.0'. However I was able to download it using vcpkg, which gave dll's, libs and headers. is it wise to use them directly in my c++ application?
how to use azure.storage.file.shares package in native code of c++
114 Views Asked by Rajani Bawgi At
1
There are 1 best solutions below
Related Questions in C++
- C++ using std::vector across boundaries
- Linked list without struct
- Connecting Signal QML to C++ (Qt5)
- how to get the reference of struct soap inherited in C++ Proxy/Service class
- Why we can't assign value to pointer
- Conversion of objects in c++
- shared_ptr: "is not a type" error
- C++ template using pointer and non pointer arguments in a QVector
- C++ SFML 2.2 vectors
- Lifetime of temporary objects
- I want to be able to use 4 different variables in a select statement in c ++
- segmentation fault: 11, extracting data in vector
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- How can I print all the values in this linked list inside a hash table?
- Configured TTL for A record(s) backing CNAME records
Related Questions in AZURE
- Why does Azure Auto-Scale scale go lower then minimum amount of instances?
- Data execution plan ended with error on DB restore
- Why does Azure CloudConfigurationManager.GetSetting return null
- Do I need other roles than Worker Role for a web site and service layer in Azure?
- Azure Web App PATH Variable Modification
- Azure Data Factory: LinkedService for AzureSql in failed state
- How To Update a Web Application In Azure and Keep The App Up the whole time
- Using Azure MobileServices library with my own LAN WebApi
- ionCube loader error on Azure IIS
- App crash (if closed) after click on notification
- How to get sql data bases instances in azure using java api
- I want to create file in azure share using python PUT requests but getting error signature not correct including headers
- Enabling OPTIONS method on Azure Cloud Service (to enable CORS)
- Redirecting subdomain to directory on Azure
- Kaltura account settings error
Related Questions in DLL
- C++ using std::vector across boundaries
- Linking to a static lib compiled with MSVC
- What are MATLAB DLLS?
- VC++ .net: Functionality from managed DLL is not exported
- DLL being marked as DELETEPENDING
- ASP.NET Web Forms give error while connecting to Oracle 11g
- Air Native Extensions: Released Air App w/Windows Native Extension works fine on develpment PC but not on other computers
- WiX and custom extensions for primary output?
- Using different versions of the same DLL in a project
- visual c++ - missing unrelated DLLs
- Error executing SSIS Package
- C++ Access violation write to 0x00000000 in dll in mql4
- How can I read embedded .resx in different assembly
- Running two versions of same Dll parallel in Asp.Net
- Call class member of c++ DLL from c#
Related Questions in NUSPEC
- how to create nuspec file in specific folder?
- How can i create a (design time only) nuget package that doesn't add an assembly reference when installed?
- MSBuild: How to update xml by xpath
- How to add CPU information in nuspec
- How to debug using Nuget source code
- nuspec contentFiles not added to a project
- Is it possible to rename a file during copy with Nuspec files node
- edit nuspec file in nupkg
- validating .nuspec file with nuspec.xsd fails on 'package'
- Nuget/.NET Core, how to hide dependencies in package
- Missing assembly reference - ensure VS creates a .config file for my nuget package
- NuGet - adding group dependencies in .nuspec file when using the "Create New NuGet Package after each build" package
- How to avoid code duplication in nuspec?
- how to use azure.storage.file.shares package in native code of c++
- How do you know which dependencies must be added to a nuspec file when publishing a nuget?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The error message you received indicates the target platform for the project, which is set to 'native, Version=v0.0', is incompatible with Azure.Storage.File.Share package. This indicates that native C++ applications aren't supposed to be used with the package and The 'Azure.Storage.Files.Shares' package is primarily intended for .NET applications.
To use the Azure storage file share library, you need to download the necessary files using
vcpkgand you can use them directly in your application.To use the library, include the required header files and link to the library files. The code samples included in the documentation provide examples of how to use the library.
To install the package you can use the below command:
Which will install and download the packages in your environment.
After downloading the packages, I tried with the same sample code to create file share which is provided in the official document and it executed successfully.
Code:
Output:
Portal:
Reference:
Quickstart: Azure Storage Files Share library v12 - C++ | Microsoft Learn