Configuration store with Notifications for Azure Service Fabric
Перейти к файлу
yaozhenhua 98e1b3331f
Merge pull request #1 from Azure/users/GitHubPolicyService/2a035b71-7ae9-433c-8eba-9d789292dfad
Adding Microsoft SECURITY.MD
2023-01-24 09:48:44 -08:00
.pipelines Sync to master commit 4efdf8da 2018-08-01 16:55:15 -07:00
build Sync to master commit 4efdf8da 2018-08-01 16:55:15 -07:00
packages Sync to master commit 4efdf8da 2018-08-01 16:55:15 -07:00
sandbox Sync to master commit 4efdf8da 2018-08-01 16:55:15 -07:00
src Sync to master commit 4efdf8da 2018-08-01 16:55:15 -07:00
.gitignore Add build instructions to README 2018-03-28 16:37:06 -07:00
CloudBuild.json Sync to master commit 4efdf8da 2018-08-01 16:55:15 -07:00
Directory.Build.props Sync to master commit 4efdf8da 2018-08-01 16:55:15 -07:00
Directory.Build.targets Sync to master commit 4efdf8da 2018-08-01 16:55:15 -07:00
LICENSE Initial commit 2018-02-09 14:45:47 -08:00
NuGet.config Sync to master commit 4efdf8da 2018-08-01 16:55:15 -07:00
README.md Update the build instructions 2018-08-01 17:01:36 -07:00
SECURITY.md Microsoft mandatory file 2023-01-24 16:40:31 +00:00
dirs.proj Sync to master commit 4efdf8da 2018-08-01 16:55:15 -07:00
owners.txt Sync to master commit 4efdf8da 2018-08-01 16:55:15 -07:00
repo.config Sync to master commit 4efdf8da 2018-08-01 16:55:15 -07:00

README.md

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

How To Build

Prerequisite

Install the latest version of Git for Windows for working with the repo.

Install Visual Studio 2017 with Windows desktop C# and dotnet core support. Either Professional or Enterprise edition will work, Community edition is not tested.

NuGet should be already installed with Visual Studio 2017. If you choose to install MSBuild / .NET SDK / Windows SDK, then install the command line version. NuGet is required to restore several packages before the build.

On Linux machine, install Dotnet Core SDK 2.1 or more recent version and download the latest nuget. To run nuget, install latest stable version of Mono from official website.

Bootstrap the development environment

In Start Menu (or whatever equivalent), find "Visual Studio 2017", open "visual Studio Tools" folder, click "Developer Command Prompt for VS 2017". A command prompt will show up, where one may run MSBuild, C# and C++ compilers. Then set the environment variable OSSBUILD to 1.

Build on Windows platform

To build all projects, simply run build\build.cmd in a Command Prompt after cleaning up the workspace.

To open project in Visual Studio IDE, assuming the workspace is stored at C:\rd\Networking-Vega, after openning "Developer Command Prompt for VS 2017" from Start Menu, run the following command to generate the solution file:

cd C:\rd\Networking-Vega\src
set SRCROOT=C:\rd\Networking-Vega\src
powershell ..\ossbuild\proj2sln.ps1 -Sln .\src.sln dirs.proj

Then open src.sln in file explorer or command prompt. Note that the conversion from project files to solution file can be performed to any *.csproj files.

If any NuGet package is not restored automatically during the build, run the following at src directory:

nuget restore packages.config
msbuild /v:m /t:restore

Recommended way to run MSBuild is:

msbuild /v:m /m /fl

Which means:

  • Verbosity level for console output is minimal.
  • Use all available processors to build projects in parallel.
  • Save detailed build log in msbuild.log.

Building inside Visual Studio or using dotnet CLI also works.

Build on Linux platform

On Linux only dotnet CLI is supported, use the following steps to build the code:

export OSSBUILD=1
cd src
nuget restore packages.config
dotnet build