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

Add nuget feed as part of the solution #118

Binary file added Assets/nuget-feed-credentials-vs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/nuget_feed_credentials_rider.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<config>
</config>
<packageRestore>
<add key="enabled" value="True" />
<add key="automatic" value="True" />
</packageRestore>
<packageSources>
<add key="NuGet" value="https://api.nuget.org/v3/index.json" />
<add key="evolutionaryArchitecture" value="https://nuget.pkg.github.com/evolutionary-architecture/index.json" />
</packageSources>
<disabledPackageSources />
<activePackageSource>
<add key="All" value="(Aggregate source)" />
</activePackageSource>
</configuration>
17 changes: 17 additions & 0 deletions Chapter-3-microservice-extraction/Fitnet/Src/nuget.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<config>
</config>
<packageRestore>
<add key="enabled" value="True" />
<add key="automatic" value="True" />
</packageRestore>
<packageSources>
<add key="NuGet" value="https://api.nuget.org/v3/index.json" />
<add key="evolutionaryArchitecture" value="https://nuget.pkg.github.com/evolutionary-architecture/index.json" />
</packageSources>
<disabledPackageSources />
<activePackageSource>
<add key="All" value="(Aggregate source)" />
</activePackageSource>
</configuration>
37 changes: 31 additions & 6 deletions Chapter-3-microservice-extraction/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,38 @@ That's it! You should now be able to run the application using either one of the

=== Building and debugging code in Rider IDE

Before you build or debug code in `Rider` environment, you first have to configure artifactory to allow to download packages for `Common` which is a part of this repository:
Before you build or debug code in `Rider` or `Visual Studio` IDE, you first have to provide your user name and previously generated PAT for artifactory to download packages for `Common` which is a part of this repository. When you load the solution, your IDE should request the credentials:

- 1. Open `JetBrains Rider` and navigate to `File > Settings > NuGet > Sources`.
- 2. Click the `+` button to add a new package source.
- 3. In the `Add Package Source` window, provide Artifactory URL in the `https://nuget.pkg.github.com/evolutionary-architecture/index.json`, fill your Github Username and PAT.
- 4. Click `OK` to confirm the new package source.
- 5. Make sure your new package source is enabled and then click `OK` to close the `Settings` window.
- `Rider`:
++++
<div>
<img src="../Assets/nuget_feed_credentials_rider.png" width="464" align="center" height="195" alt="rider nuget feed credentials request">
</div>
++++
- `Visual Studio`:
++++
<div>
<img src="../Assets/nuget_feed_credentials_vs.png" width="322" align="center" height="289" alt="vs nuget feed credentials request">
</div>
++++

In case of any issues, you can add nuget feed manually:

- `Rider`
1. Open `JetBrains Rider`, right click on the solution in the solution explorer and click `Manage NuGet Packages`.
1. Click on the `Sources` tab.
1. Click the `+` button to add a new package source.
1. In the `Add Package Source` window, provide Artifactory URL in the `https://nuget.pkg.github.com/evolutionary-architecture/index.json`, fill your Github Username and PAT.
1. Click `OK` to confirm the new package source.
1. Make sure your new package source is enabled and then click `OK` to close the `Settings` window.
1. You sould be promted for user name and password (PAT).
- `Visual Studio`
1. Open `Microsoft Visual Studio`, right click on the solution in the solution explorer and click `Manage NuGet Packages for Solution`.
1. Click on the `gears` icon.
1. Click the `+` button to add a new package source.
1. Set the package name and se the source to Artifactory URL `https://nuget.pkg.github.com/evolutionary-architecture/index.json`.
1. You sould be promted for user name and password (PAT).
1. Click `OK` to confirm the new package source.

You should now be able to restore and download the EvolutionaryArchitecture nuget packages from your Artifactory source within Rider.

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<config>
</config>
<packageRestore>
<add key="enabled" value="True" />
<add key="automatic" value="True" />
</packageRestore>
<packageSources>
<add key="NuGet" value="https://api.nuget.org/v3/index.json" />
<add key="evolutionaryArchitecture" value="https://nuget.pkg.github.com/evolutionary-architecture/index.json" />
</packageSources>
<activePackageSource>
<add key="All" value="(Aggregate source)" />
</activePackageSource>
</configuration>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<config>
</config>
<packageRestore>
<add key="enabled" value="True" />
<add key="automatic" value="True" />
</packageRestore>
<packageSources>
<add key="NuGet" value="https://api.nuget.org/v3/index.json" />
<add key="evolutionaryArchitecture" value="https://nuget.pkg.github.com/evolutionary-architecture/index.json" />
</packageSources>
<disabledPackageSources />
<activePackageSource>
<add key="All" value="(Aggregate source)" />
</activePackageSource>
</configuration>
37 changes: 31 additions & 6 deletions Chapter-4-applying-tactical-domain-driven-design/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,38 @@ That's it! You should now be able to run the application using either one of the

=== Building and debugging code in Rider IDE

Before you build or debug code in `Rider` environment, you first have to configure artifactory to allow to download packages for `Common` which is a part of this repository:
Before you build or debug code in `Rider` or `Visual Studio` IDE, you first have to provide your user name and previously generated PAT for artifactory to download packages for `Common` which is a part of this repository. When you load the solution, your IDE should request the credentials:
kamilbaczek marked this conversation as resolved.
Show resolved Hide resolved

- 1. Open `JetBrains Rider` and navigate to `File > Settings > NuGet > Sources`.
- 2. Click the `+` button to add a new package source.
- 3. In the `Add Package Source` window, provide Artifactory URL in the `https://nuget.pkg.github.com/evolutionary-architecture/index.json`, fill your Github Username and PAT.
- 4. Click `OK` to confirm the new package source.
- 5. Make sure your new package source is enabled and then click `OK` to close the `Settings` window.
- `Rider`:
++++
<div>
<img src="../Assets/nuget_feed_credentials_rider.png" width="464" align="center" height="195" alt="rider nuget feed credentials request">
</div>
++++
- `Visual Studio`:
++++
<div>
<img src="../Assets/nuget_feed_credentials_vs.png" width="322" align="center" height="289" alt="vs nuget feed credentials request">
</div>
++++

In case of any issues, you can add nuget feed manually:

- `Rider`
1. Open `JetBrains Rider`, right click on the solution in the solution explorer and click `Manage NuGet Packages`.
1. Click on the `Sources` tab.
1. Click the `+` button to add a new package source.
1. In the `Add Package Source` window, provide Artifactory URL in the `https://nuget.pkg.github.com/evolutionary-architecture/index.json`, fill your Github Username and PAT.
1. Click `OK` to confirm the new package source.
1. Make sure your new package source is enabled and then click `OK` to close the `Settings` window.
1. You sould be promted for user name and password (PAT).
- `Visual Studio`
1. Open `Microsoft Visual Studio`, right click on the solution in the solution explorer and click `Manage NuGet Packages for Solution`.
1. Click on the `gears` icon.
1. Click the `+` button to add a new package source.
1. Set the package name and se the source to Artifactory URL `https://nuget.pkg.github.com/evolutionary-architecture/index.json`.
1. You sould be promted for user name and password (PAT).
1. Click `OK` to confirm the new package source.

You should now be able to restore and download the EvolutionaryArchitecture nuget packages from your Artifactory source within Rider.

Expand Down
Loading