Skip to content

Commit

Permalink
Merge pull request #4 from jitterbit/feature/JIT-97707
Browse files Browse the repository at this point in the history
JIT-97707: Update to aspnetcore 6.0.26
  • Loading branch information
jb-preston-jennings authored Feb 6, 2024
2 parents 05f7886 + 5a6e1c1 commit 9aed2db
Show file tree
Hide file tree
Showing 44 changed files with 2,217 additions and 1,825 deletions.
10 changes: 6 additions & 4 deletions NuGet.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
<clear />
<!--Begin: Package sources managed by Dependency Flow automation. Do not edit the sources below.-->
<!-- Begin: Package sources from dotnet-runtime -->
<add key="darc-int-dotnet-runtime-492abbe" value="https://pkgs.dev.azure.com/dnceng/internal/_packaging/darc-int-dotnet-runtime-492abbee/nuget/v3/index.json" />
<add key="darc-int-dotnet-runtime-dc45e96" value="https://pkgs.dev.azure.com/dnceng/internal/_packaging/darc-int-dotnet-runtime-dc45e968/nuget/v3/index.json" />
<!-- End: Package sources from dotnet-runtime -->
<!-- Begin: Package sources from dotnet-efcore -->
<add key="darc-int-dotnet-efcore-ebac228" value="https://pkgs.dev.azure.com/dnceng/internal/_packaging/darc-int-dotnet-efcore-ebac2284/nuget/v3/index.json" />
<add key="darc-int-dotnet-efcore-b254074" value="https://pkgs.dev.azure.com/dnceng/internal/_packaging/darc-int-dotnet-efcore-b254074a/nuget/v3/index.json" />
<add key="darc-int-dotnet-efcore-b254074-1" value="https://pkgs.dev.azure.com/dnceng/internal/_packaging/darc-int-dotnet-efcore-b254074a-1/nuget/v3/index.json" />
<!-- End: Package sources from dotnet-efcore -->
<!--End: Package sources managed by Dependency Flow automation. Do not edit the sources above.-->
<add key="dotnet-eng" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" />
Expand All @@ -25,10 +26,11 @@
<clear />
<!--Begin: Package sources managed by Dependency Flow automation. Do not edit the sources below.-->
<!-- Begin: Package sources from dotnet-efcore -->
<add key="darc-int-dotnet-efcore-ebac228" value="true" />
<add key="darc-int-dotnet-efcore-b254074-1" value="true" />
<add key="darc-int-dotnet-efcore-b254074" value="true" />
<!-- End: Package sources from dotnet-efcore -->
<!-- Begin: Package sources from dotnet-runtime -->
<add key="darc-int-dotnet-runtime-492abbe" value="true" />
<add key="darc-int-dotnet-runtime-dc45e96" value="true" />
<!-- End: Package sources from dotnet-runtime -->
<!--End: Package sources managed by Dependency Flow automation. Do not edit the sources above.-->
</disabledPackageSources>
Expand Down
84 changes: 84 additions & 0 deletions README-VINYL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# AspNetCore for Vinyl offline mobile

## Building Locally

TODO:

Ultimately I'm able to just do the following to build the project (from OSX):

```
./pack.ps1
```

There are probably a few setup steps to run beforehand :-)

## Sync New Upstream Version.

In order to sync up with a new version of AspNetCore, run the following commands:

### Create git branch

Merge tag 'v6.0.25' into feature/JIT-96177

```
git fetch upstream
git fetch upstream --tags
git merge v6.0.26
```

There is usually a merge conflict in `global.json` as we update the file with the version of .net 6.0 installed locally.

Now commit and push to github.

### Create build

Navigate to the github actions for the vinyl-aspnetcore repo and run "Vinyl Maui Build".
This will create the nuget packages for upload.

## Uploading NuGet Packages to GitHub

After creating the build, you'll need to push new nuget packages to the Jitterbit repository.
This allows them to be pulled down by nuget when creating an offline mobile build.

### Set up github authentication key

If you haven't set up a github authentication key for writing packages to the jitterbit repository, do this now.

- Navigate to your settings
https://github.com/settings/profile
- Click Developer Settings
- Navigate to Personal Access Tokens > Tokens (classic)
- Generate a new token and include `repo, write:packages` permissions.
- Copy the generated key.
- Open (or create) the file `~/.nuget/NuGet/NuGet.Config`
- Add the following sections (merging with existing values if necessary)

```
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<!-- This line should already exist... don't change... -->
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<!-- Add the github jitterbit repository -->
<add key="github" value="https://nuget.pkg.github.com/jitterbit/index.json" />
</packageSources>
<packageSourceCredentials>
<!-- Add your packages write token -->
<github>
<add key="Username" value="YOUR_USERNAME_HERE" />
<add key="ClearTextPassword" value="YOUR_KEY_HERE />
</github>
</packageSourceCredentials>
</configuration>
```

### Upload nuget packages

After downloading all the nuget packages to a folder, run a command such as this to upload them to nuget packages:

```
nuget push *.26.nupkg -source "github" -skipduplicate
```

Note that you only need to push the nupkg and not the symbols (they will be automatically pushed when pushing the package).
Loading

0 comments on commit 9aed2db

Please sign in to comment.