The Microsoft Azure SDK for .NET allows you to build applications that take advantage of scalable cloud computing resources.
* .NET Framework 4.5
* dnxcore50, based on the .NET Core framework
* .NET Portable Framework, using profile 111
Visual Studio 2015 RTM with ASP.NET. For details, check out the installation doc.
Note, after done, run "dnvm list" command to check the 'coreclr' runtime is installed with right version of '1.0.0-rc1-final'. If not, run “dnvm install 1.0.0-rc1-final -r coreclr -a x64 -Persistent”. Remember always use "-Persistent" flag, so the selection can persist.
Due to this build issue on portable framework, when install VS 2015, use the default option. If you didn't, go to “C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable\v4.5\Profile\Profile111\SupportedFrameworks”, remove several profile xmls and only keep core targets of “.NET Framework 4.5.xml”, “Windows 8.xml”, and “Windows Phone 8.1.xml”.
Using Visual Studio:
- Open any solution, say, "src\ResourceManagement\Compute\Compute.sln".
- Invoke "build" command.
Using the command line:
- Ensure "msbuild.exe" is under environment pathes, which you can run the command file pre-installed by Visual Studio. C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat
- Under repository root, there is a "build.proj", which you can build with. For example, to build a nuget package for compute management, run: msbuild build.proj /t:build;package /p:scope=ResourceManagement\Compute
- For other supported flags, check out the top comment section inside "build.proj".
Using Visual Studio:
- Build.
- "Test Explorer" window will get populated with tests. Go select and invoke.
Using the command line:
- Refer to the "To build" section to get the command window set up.
- Invoke "Test" target from "Build.proj". Likely, you need to build test project first, so put in "build" target as well. msbuild build.proj /t:build;test /p:scope=ResourceManagement\Compute
Follow existing library and create a new folder under "ResourceManagement". 2 notes
- To simplify test discovery, the test folder must be named with ".test" or ".tests"
- To workaround the dnx bug, add a new entry to global.json
If for platform reasons that your library won't use dnx project system, 2 notes
- In your library csproject file, set the msbuild property "AutoRestProjects" to "true"
- In your test project files, set both "AutoRestProjects" and "SDKTestProject" to "true"
- To simplify test discovery, the test folder must be named with ".tests"
Much of the SDK code is generated from metadata specs about the REST APIs. Do not submit PRs that modify generated code. Instead, file an issue describing the problem, OR refer to the the AutoRest project to view and modify the generator.