forked from vipoo/SuperMFLib
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Build Instructions.txt
36 lines (30 loc) · 2 KB
/
Build Instructions.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Requirements:
----------------
1. Visual Studio 2022
Building:
----------------
1. Change the Assembly Version to a new version
a. Either by editing the .csproj file and setting <AssemblyVersion>
b. Or by editing properties on the project, under: Package -> General -> Assembly version
2. Build or Rebuild from within Visual Studio
- This should generate $(SolutionDir)\bin\$(Configuration)\MediaFoundationEx.#.#.#.nupkg files
Optional: If you have Azure DevOps artifacts store:
3. Upload and publish the NUGET package to the Azure DevOps artifacts store
- Only once, see "Download and install the Azure Artifacts Credential Provider" below
- Only once, configure a nuget repository name.
- In Visual Studio, Menu Tools -> NuGet Package Manager -> Package Manager Console
- From the Package Manager Console window, replace the placeholders and run:
dotnet nuget push --source "<NuGet Repository Name>" --api-key az --interactive .\bin\<Configuration>\MediaFoundationEx.<Major>.<Minor>.<Build>.nupkg
- If this needed to enter Azure credentials, the command will output the message below. Follow the instructions and re-run the command.
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code ....... to authenticate.
Download and install the Azure Artifacts Credential Provider
--------------------------------------------------------------
Manual installation on Windows
1. Download the latest release of Microsoft.NuGet.CredentialProvider.zip from https://github.com/Microsoft/artifacts-credprovider/releases
2. Unzip the file
3. Copy the netcore (and netfx for nuget.exe) directory from the extracted archive to %UserProfile%\.nuget\plugins\. Create the plugins directory if needed.
Configuring a nuget repository name
-----------------------------------
1. Either configure a global nuget repository in Tools -> Options -> NuGet Package Manager -> Package Options
2. Create a nuget.config in the solution directory.
In both cases, consult Azure Devops to obtaine the artifact store URL.