Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

comand-line build instructions clarification #533

Closed
wants to merge 14 commits into from
Closed
7 changes: 4 additions & 3 deletions README.md
Expand Up @@ -144,10 +144,11 @@ To build the Open XML SDK

If you want to use a command line approach:

1. Go to the directory that contains the solution.
1. Go to the directory that contains the project file, i.e. `cd <clone path>\src\DocumentFormat.OpenXml`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you changing it to the project directory? I always go to the solution directory

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because I ran 'dotnet build DocumentFormat.OpenXml.csproj' from the solution folder and it complained that the csproj wasn't found. I'll rework and include your fixes below.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh - no need to include the csproj. Just run dotnet build

1. Run `dotnet restore` in the directory.
tomjebo marked this conversation as resolved.
Show resolved Hide resolved
tomjebo marked this conversation as resolved.
Show resolved Hide resolved
1. Run `dotnet test DocumentFormat.OpenXml.Tests` to run the tests.
1. Run `dotnet pack DocumentFormat.OpenXml` to generate a nupkg.
1. Run `dotnet test DocumentFormat.OpenXml.Tests.csproj` to run the tests.
tomjebo marked this conversation as resolved.
Show resolved Hide resolved
1. Run `dotnet pack DocumentFormat.OpenXml.csproj` to build the SDK framework assembly.
tomjebo marked this conversation as resolved.
Show resolved Hide resolved
1. Run `dotnet pack DocumentFormat.OpenXml.csproj` to generate a nupkg.

Related tools
-------------
Expand Down