Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
167 commits
Select commit Hold shift + click to select a range
56d18e2
dics(grids): custom samples remote paging
tishko0 Jul 20, 2024
61a51cd
mdd-33040
mddifilippo89 Aug 2, 2024
7bd1dbe
Add default separator to the grid and tree grid clipboard operations …
skrustev Sep 10, 2024
2bf4379
Reorder avatar size sample to match wc one.
skrustev Sep 10, 2024
bd555d9
Adding Divider Samples
Sep 11, 2024
483013f
fix(grids): Updated remote paging samples
tishko0 Sep 11, 2024
d7cc8fa
fix(grids): updated data name to pass nwind checks
tishko0 Sep 11, 2024
3439878
Adding changes from build igniteui-xplat-examples-output+PRs_2024.9.13.1
Sep 13, 2024
6ac791b
Merge pull request #817 from IgniteUI/ikitanov/divider-samples-#1369
kacheshmarova Sep 16, 2024
fe44ede
Merge pull request #819 from IgniteUI/ESShared/XPlaform_examples_igni…
dkamburov Sep 17, 2024
e3d6655
Removing unnecessary code
Sep 18, 2024
70d62bb
Merge pull request #820 from IgniteUI/ikitanov/divider-build-fail-fix…
kacheshmarova Sep 18, 2024
ccf6f30
chore(*): attemp fixing the build - rename base sample to overview
dkamburov Sep 19, 2024
5569d9c
Merge pull request #822 from IgniteUI/dkamburov/fix-build-error
kacheshmarova Sep 20, 2024
686d04a
docs(grids): fixed data issues and removed old sample
tishko0 Sep 20, 2024
46ad0ff
Merge remote-tracking branch 'origin' into ttonev/remote-paging-grids
tishko0 Sep 24, 2024
ffeb83c
fix(grid): added reference to services for rm data samples
tishko0 Sep 26, 2024
31e415d
Merge pull request #778 from IgniteUI/mdd-radial-gauge-title
HUSSAR-mtrela Sep 26, 2024
d76889e
Merge pull request #769 from IgniteUI/ttonev/remote-paging-grids
dkamburov Sep 27, 2024
84b6c96
chore(*): update ig packages to 24.1.61
dkamburov Oct 8, 2024
b8e03c8
Merge pull request #824 from IgniteUI/dkamburov/update-24.1.61
HUSSAR-mtrela Oct 8, 2024
02ea809
Update blazor to 24.1.62
dkamburov Oct 9, 2024
db0814b
Merge pull request #825 from IgniteUI/dkamburov/update-24.1.62
dkamburov Oct 10, 2024
4e8910c
chore(*): update pipelines version
dkamburov Oct 10, 2024
2877179
Merge pull request #826 from IgniteUI/dkamburov/update-pipes-version
dkamburov Oct 10, 2024
56fa098
chore(*): update ig to 24.1.67
dkamburov Oct 11, 2024
edb6f7d
Merge pull request #828 from IgniteUI/dkambuov/update-24.1.67
dkamburov Oct 11, 2024
08421e1
Merge pull request #815 from IgniteUI/skrastev/clipboard-operations
dkamburov Oct 11, 2024
0fede0b
chore(*): Fix issue with remote data and enable sample. (#818)
MayaKirova Oct 30, 2024
1bd7ec8
Update custom sample to use proper way of getting grid columns. (#816)
skrustev Oct 30, 2024
31358f0
fix(grid): fixed scrolling of grid overlay container (#838)
tishko0 Nov 5, 2024
c254c61
chore(*): update ig packages to 24.2.14 (#840)
dkamburov Nov 12, 2024
973dea2
Fix stepper animations sample (#841)
IMinchev64 Nov 12, 2024
08e2567
Fix grid state sample column field (#843)
mddragnev Nov 14, 2024
3176650
Fix Pivot sample data and data selector grid ref. (#837)
skrustev Nov 14, 2024
d9bfc6d
Adding changes from build igniteui-xplat-examples-output+PRs_2024.11.…
azure-pipelines[bot] Nov 14, 2024
17cc2bf
feat(carousel): add samples
RivaIvanova Nov 18, 2024
af7f1d5
chore(*): update ig packages to 24.2.19 (#848)
dkamburov Nov 18, 2024
5966faa
Adding changes from build igniteui-xplat-examples-output+PRs_2024.11.…
azure-pipelines[bot] Nov 18, 2024
b8629cd
Merge pull request #847 from IgniteUI/rivanova/carousel-samples
kacheshmarova Nov 19, 2024
19848f2
fix(pivot): unify data source for the custom pivot samples (#851)
dkamburov Nov 19, 2024
5e71dc6
Merge remote-tracking branch 'origin/master' into vnext
dkamburov Nov 19, 2024
8120717
sync IG version
HUSSAR-mtrela Nov 22, 2024
be8d806
readme - Updating Packages in Samples
HUSSAR-mtrela Nov 25, 2024
5ecc1f2
revert CodeOwners
HUSSAR-mtrela Nov 25, 2024
d7d44ca
update readme
HUSSAR-mtrela Dec 9, 2024
573f2d0
Update SamplesBrowser_SEO.cs
HUSSAR-mtrela Dec 9, 2024
81f643e
update IG packages 24.2.20
HUSSAR-mtrela Dec 9, 2024
a79c4fb
mdd-update-.net9
mddifilippo89 Dec 10, 2024
673a68e
update-gulp
mddifilippo89 Dec 10, 2024
fc355e2
Merge pull request #857 from IgniteUI/mt/ig-24.2.20
HUSSAR-mtrela Dec 10, 2024
2eb28bc
switch from using InvokeUnmarshalled to JSImport for downloading exce…
IGvaleries Dec 11, 2024
c026d83
Merge pull request #863 from IgniteUI/vs-excel-JSImport
HUSSAR-mtrela Dec 11, 2024
39365c8
v24.2.42
HUSSAR-mtrela Dec 11, 2024
97b4337
Merge pull request #864 from IgniteUI/mt/ig-24.2.42
HUSSAR-mtrela Dec 11, 2024
28369e9
v24.2.42
HUSSAR-mtrela Dec 11, 2024
339c87f
Update build-steps-template.yml
IGvaleries Dec 12, 2024
91b74f5
Merge pull request #867 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 12, 2024
d433f3b
Update build-steps-template.yml
IGvaleries Dec 12, 2024
c2eedcd
Merge pull request #868 from IgniteUI/IGvaleries-patch-1
HUSSAR-mtrela Dec 12, 2024
5ee719e
Adding changes from build igniteui-xplat-examples-output+PRs_2024.12.…
Dec 12, 2024
a3857b4
Merge pull request #869 from IgniteUI/ESShared/XPlaform_examples_igni…
HUSSAR-mtrela Dec 12, 2024
155160b
Update build-steps-template.yml
IGvaleries Dec 13, 2024
6cd8c94
Merge pull request #874 from IgniteUI/IGvaleries-patch-1
gmurray81 Dec 13, 2024
6924042
Adding changes from build igniteui-xplat-examples-output+PRs_2024.12.…
Dec 13, 2024
e34e780
Update build-pipeline-client.yml
IGvaleries Dec 13, 2024
0ddfc3a
Merge pull request #876 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 13, 2024
ee9833b
Update build-steps-template.yml
IGvaleries Dec 13, 2024
0aaf563
Merge pull request #877 from IgniteUI/IGvaleries-patch-1
gmurray81 Dec 13, 2024
5bbe80f
Update build-steps-template.yml
IGvaleries Dec 13, 2024
286ecd6
Merge pull request #878 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 13, 2024
412663f
Update build-steps-template.yml
IGvaleries Dec 13, 2024
006aa07
Merge pull request #879 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 13, 2024
ee810fa
Update build-steps-template.yml
IGvaleries Dec 13, 2024
6f3eb11
Merge pull request #880 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 13, 2024
e550ef6
Update build-steps-template.yml
IGvaleries Dec 13, 2024
f0864db
Merge pull request #881 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 14, 2024
d98d69a
Merge pull request #875 from IgniteUI/ESShared/XPlaform_examples_igni…
HUSSAR-mtrela Dec 16, 2024
8e9d4f9
Update build-steps-template.yml
IGvaleries Dec 16, 2024
2daa5fd
Merge pull request #882 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 16, 2024
63efe86
Update build-steps-template.yml
IGvaleries Dec 16, 2024
4b893c1
Merge pull request #883 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 16, 2024
9c53550
Update build-steps-template.yml
IGvaleries Dec 16, 2024
131ce65
Merge pull request #884 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 16, 2024
fa3d0d2
Update build-steps-template.yml
IGvaleries Dec 16, 2024
b9615e1
Merge pull request #885 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 16, 2024
c7af83b
Update build-steps-template.yml
IGvaleries Dec 16, 2024
fa3cb58
test nuget command also
IGvaleries Dec 16, 2024
e27f1b3
Merge pull request #886 from IgniteUI/IGvaleries-patch-1
HUSSAR-mtrela Dec 16, 2024
9a475ad
try again
IGvaleries Dec 16, 2024
7144fe0
Merge pull request #887 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 16, 2024
7a44f32
retry restore
IGvaleries Dec 16, 2024
077af68
remove creds
IGvaleries Dec 16, 2024
53d80c1
Merge pull request #888 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 16, 2024
3865d0f
next test
IGvaleries Dec 16, 2024
fb9f4b7
Merge pull request #889 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 16, 2024
1544499
fix path
IGvaleries Dec 16, 2024
4138d40
Merge pull request #890 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 16, 2024
297035e
Update build-steps-template.yml
IGvaleries Dec 16, 2024
d6c0c2d
Merge pull request #891 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 16, 2024
368f471
Update build-steps-template.yml
IGvaleries Dec 16, 2024
019195b
Merge pull request #892 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 16, 2024
bb2a0b9
Update build-steps-template.yml
IGvaleries Dec 16, 2024
50d401c
Merge pull request #893 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 16, 2024
c861e2b
Update build-steps-template.yml
IGvaleries Dec 16, 2024
0307255
Merge pull request #894 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 16, 2024
da54ad1
Update build-steps-template.yml
IGvaleries Dec 16, 2024
9eb2333
Merge pull request #895 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 16, 2024
b16ceb8
Update build-steps-template.yml
IGvaleries Dec 16, 2024
ad02e5f
Merge pull request #896 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 16, 2024
9973c4e
Update build-steps-template.yml
IGvaleries Dec 16, 2024
6b7c25e
Merge pull request #897 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 16, 2024
fe8b611
Update build-steps-template.yml
IGvaleries Dec 16, 2024
65da38c
Merge pull request #898 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 16, 2024
dfe8eec
Update build-steps-template.yml
IGvaleries Dec 16, 2024
3b3fd0c
Merge pull request #899 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 16, 2024
3b32b65
Update build-steps-template.yml
IGvaleries Dec 16, 2024
52f4c18
Merge pull request #900 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 16, 2024
aff66e1
Update build-steps-template.yml
IGvaleries Dec 16, 2024
36a4a48
Merge pull request #901 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 16, 2024
d43ba77
Update build-steps-template.yml
IGvaleries Dec 16, 2024
3a67c21
Merge pull request #902 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 16, 2024
f827f4a
Update build-steps-template.yml
IGvaleries Dec 16, 2024
7aa2aa3
Merge pull request #903 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 16, 2024
8be143b
Update build-pipeline-client.yml
IGvaleries Dec 16, 2024
2a59993
Merge pull request #904 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 16, 2024
804c0c5
Adding changes from build igniteui-xplat-examples-output+PRs_2024.12.…
Dec 17, 2024
669c190
Merge pull request #905 from IgniteUI/ESShared/XPlaform_examples_igni…
mddifilippo89 Dec 17, 2024
5445d8d
Adding changes from build igniteui-xplat-examples-output+PRs_2024.12.…
Dec 17, 2024
b05e5c2
Merge pull request #907 from IgniteUI/ESShared/XPlaform_examples_igni…
mddifilippo89 Dec 17, 2024
3ce8d1d
Adding changes from build igniteui-xplat-examples-output+PRs_2024.12.…
Dec 17, 2024
34df6bc
Merge pull request #908 from IgniteUI/ESShared/XPlaform_examples_igni…
HUSSAR-mtrela Dec 17, 2024
e8b4352
Update build-pipeline-server.yml
IGvaleries Dec 17, 2024
304a720
Merge pull request #909 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 17, 2024
f1b8aab
add bubble chart tooltip sample
HUSSAR-mtrela Dec 17, 2024
e2fcf53
fixed sample
HUSSAR-mtrela Dec 17, 2024
a1f6953
Merge branch 'vnext' of https://github.com/IgniteUI/igniteui-blazor-e…
HUSSAR-mtrela Dec 17, 2024
349e6af
export data
HUSSAR-mtrela Dec 17, 2024
cde1378
fix build add AllowUnsafeBlocks
IGvaleries Dec 17, 2024
ca2b624
Merge pull request #910 from IgniteUI/vs-fix-server-build
IGvaleries Dec 17, 2024
cb31703
update bubble sample
HUSSAR-mtrela Dec 18, 2024
44b6819
Adding changes from build igniteui-xplat-examples-output+PRs_2024.12.…
Dec 18, 2024
190f2d8
Merge pull request #911 from IgniteUI/ESShared/XPlaform_examples_igni…
HUSSAR-mtrela Dec 18, 2024
22071fd
improve bubble samples
HUSSAR-mtrela Dec 18, 2024
f210bb5
fix bubble axis
HUSSAR-mtrela Dec 18, 2024
c8e6bc4
Merge branch 'vnext' of https://github.com/IgniteUI/igniteui-blazor-e…
HUSSAR-mtrela Dec 18, 2024
4d1bfbb
export bubble samples
HUSSAR-mtrela Dec 18, 2024
c456908
Adding changes from build igniteui-xplat-examples-output+PRs_2024.12.…
Dec 18, 2024
dcf6dd4
Merge pull request #912 from IgniteUI/ESShared/XPlaform_examples_igni…
HUSSAR-mtrela Dec 18, 2024
32c3199
Adding changes from build igniteui-xplat-examples-output+PRs_2024.12.…
Dec 18, 2024
abd6a4c
Merge pull request #913 from IgniteUI/ESShared/XPlaform_examples_igni…
HUSSAR-mtrela Dec 18, 2024
9cfe27a
IG v24.2.52
HUSSAR-mtrela Dec 19, 2024
783ae5f
Merge branch 'master' into vnext
HUSSAR-mtrela Dec 19, 2024
85d7ee7
update pipelines v24.2.52
HUSSAR-mtrela Dec 19, 2024
d2b420f
fixed bubble tooltips
HUSSAR-mtrela Dec 19, 2024
756cc69
Update build-pipeline-client.yml
IGvaleries Dec 23, 2024
bbec255
Merge pull request #914 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 23, 2024
1c48e67
Update build-steps-template.yml
IGvaleries Dec 23, 2024
5200f72
Merge pull request #915 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 23, 2024
19c9d7e
Update build-steps-template.yml
IGvaleries Dec 23, 2024
a60b07e
Merge pull request #916 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 23, 2024
b1c7bd8
Update build-steps-template.yml
IGvaleries Dec 23, 2024
ef4456a
Merge pull request #917 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 23, 2024
56c486c
Update build-pipeline-client.yml
IGvaleries Dec 23, 2024
bc1ae1d
Merge pull request #918 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 23, 2024
5a1fcd2
Update build-steps-template.yml
IGvaleries Dec 23, 2024
acb40e4
Merge pull request #919 from IgniteUI/IGvaleries-patch-1
IGvaleries Dec 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
File renamed without changes.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,21 @@ At this point, you should see a website hosted all examples of [Ignite UI for Bl

![Samples Browser Preview](./browser/IgBlazorSamples.Client/wwwroot/images/preview.PNG)

## Updating Packages in Samples

NOTE Do NOT find replace version of packages in package.json files.

- open this repo in VS Code
- open [./browser/IgBlazorSamples.Gulp/tasks/gulp-samples.js](./browser/tasks/gulp-samples.js) file
- navigate to the `updateIG` function
- update version of packages in `packageUpgrades` array
- open terminal window
- run `cd browser/IgBlazorSamples.Gulp` command
- run `npm install --legacy-peer-deps` command
- run the `gulp updateIG` command
- create AND merge a pull request with changes in all *.csproj files in this repository
- create 2nd pull request with similar changes in `/editor-templates/Blazor/main-template/BlazorClientApp.csproj` of the [igniteui-xplat-examples](https://github.com/IgniteUI/igniteui-xplat-examples) repository.


## Resources

Expand Down
4 changes: 3 additions & 1 deletion azure-pipelines/build-pipeline-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ stages:

- template: templates/build-steps-template.yml
parameters:
igVersion: '24.2.19'
igVersion: '24.2.52'
igNuGetFeedUrl: $(IG_Nuget_Feed_URL)
projectToBuild: Client
isVerbose: ${{ parameters.isVerbose }}
shouldCleanPostExectuion: ${{ parameters.shouldCleanPostExectuion }}
username: $(IG_Nuget_Feed_Username)
password: $(IG_Nuget_Feed_Password)
4 changes: 3 additions & 1 deletion azure-pipelines/build-pipeline-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ stages:

- template: templates/build-steps-template.yml
parameters:
igVersion: '24.2.19'
igVersion: '24.2.52'
igNuGetFeedUrl: $(IG_Nuget_Feed_URL)
projectToBuild: Server
isVerbose: ${{ parameters.isVerbose }}
shouldCleanPostExectuion: ${{ parameters.shouldCleanPostExectuion }}
username: $(IG_Nuget_Feed_Username)
password: $(IG_Nuget_Feed_Password)
191 changes: 191 additions & 0 deletions azure-pipelines/build-steps-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
parameters:
- name: igVersion
- name: igNuGetFeedUrl
- name: projectToBuild
- name: isVerbose
default: false
- name: shouldCleanPostExectuion
- name: username
- name: password

steps:
- task: NodeTool@0
displayName: 'Install Node'
inputs:
versionSource: 'spec'
versionSpec: '16.x'

- task: Npm@1
displayName: 'npm ci'
inputs:
command: custom
workingDir: '$(Build.SourcesDirectory)\browser\IgBlazorSamples.Gulp'
verbose: ${{ parameters.isVerbose }}
customCommand: ci

- task: CmdLine@2
displayName: 'npx gulp copySamplesTo${{ parameters.projectToBuild }}'
inputs:
script: 'npx gulp copySamplesTo${{ parameters.projectToBuild }}'
workingDirectory: '$(Build.SourcesDirectory)\browser\IgBlazorSamples.Gulp'
failOnStderr: true

- task: UseDotNet@2
displayName: 'Install dotnet if not already present'
inputs:
packageType: 'sdk'
version: '9.0.101' # we are currently building a 8.0 app. TODO: Try upgrading to 8.x in the future
performMultiLevelLookup: false


- task: PowerShell@2
displayName: 'Generate NuGet.config for IG ProGet NuGet feed and u'
inputs:
targetType: 'inline'
script: |
dotnet new nugetconfig --force
# The name of the source doesn't currently matter as the credentials are attached thanks to URL matching - according to MS docs
dotnet nuget add source ${{ parameters.igNuGetFeedUrl }} --name "IG ProGet NuGet" --allow-insecure-connections
# Manually add the allowInsecureConnections attribute to the nuget.config file
$nugetConfigPath = "$(Build.SourcesDirectory)\NuGet.config"
[xml]$nugetConfig = Get-Content $nugetConfigPath
$nugetConfig.configuration.packageSources.add | Where-Object { $_.name -eq "IG ProGet NuGet" } | ForEach-Object { $_.allowInsecureConnections = "true" }
$nugetConfig.Save($nugetConfigPath)
failOnStderr: true
showWarnings: true
workingDirectory: '$(Build.SourcesDirectory)'

- task: PowerShell@2
displayName: 'Identify trial packages and use licensed ones instead'
inputs:
targetType: 'inline'
script: |
$xml = [XML](Get-Content '.\IgBlazorSamples.${{ parameters.projectToBuild }}.csproj');

$nodes = $xml.SelectNodes("//PackageReference[starts-with(@Include,'IgniteUI')]") |
ForEach-Object {
$_.SetAttribute("Include",$_.Include.Replace(".Trial",""));
$_.SetAttribute("Version", "${{ parameters.igVersion }}");
Write-Host $_.Version
}
$xml.Save('.\IgBlazorSamples.${{ parameters.projectToBuild }}.csproj')
failOnStderr: true
showWarnings: true
workingDirectory: '$(Build.SourcesDirectory)\browser\IgBlazorSamples.${{ parameters.projectToBuild }}'

- task: DotNetCoreCLI@2
displayName: 'dotnet restore'
continueOnError: true
enabled: true
inputs:
command: 'restore'
projects: '$(Build.SourcesDirectory)\browser\IgBlazorSamples.${{ parameters.projectToBuild }}'
# We want the dependency tree to be evaluated each time and to be sure that the dependencies are freshly downloaded
restoreArguments: '--ignore-failed-sources --no-cache --force'
feedsToUse: 'config'
nugetConfigPath: '$(Build.SourcesDirectory)\nuget.config'
# This task cannot use an apiKey directly (yet) so use any other service connection not based on an api key
externalFeedCredentials: 'IG ProGet IgniteUINuGet - Staging'
verbosityRestore: 'Diagnostic'

- task: PowerShell@2
displayName: 'Generate NuGet.config for IG ProGet NuGet feed'
inputs:
targetType: 'inline'
script: |
dotnet new nugetconfig --force
dotnet nuget add source ${{ parameters.igNuGetFeedUrl }} --name "IG ProGet NuGet" --allow-insecure-connections
# Manually add the allowInsecureConnections attribute to the nuget.config file
$nugetConfigPath = "$(Build.SourcesDirectory)\NuGet.config"
[xml]$nugetConfig = Get-Content $nugetConfigPath
$nugetConfig.configuration.packageSources.add | Where-Object { $_.name -eq "IG ProGet NuGet" } | ForEach-Object { $_.allowInsecureConnections = "true" }
# Add credentials to the nuget.config file
$packageSourceCredentials = $nugetConfig.CreateElement("packageSourceCredentials")
$source = $packageSourceCredentials.CreateElement("IG ProGet NuGet")
$add = $source.CreateElement("add")
$add.SetAttribute("key", "Username")
$add.SetAttribute("value", "$(username)")
$source.AppendChild($add)
$add = $source.CreateElement("add")
$add.SetAttribute("key", "ClearTextPassword")
$add.SetAttribute("value", "$(password)")
$source.AppendChild($add)
$packageSourceCredentials.AppendChild($source)
$nugetConfig.configuration.AppendChild($packageSourceCredentials)
$nugetConfig.Save($nugetConfigPath)
failOnStderr: true
showWarnings: true
workingDirectory: '$(Build.SourcesDirectory)'

- task: DotNetCoreCLI@2
displayName: 'dotnet restore B'
continueOnError: true
enabled: true
inputs:
command: 'restore'
projects: '$(Build.SourcesDirectory)\browser\IgBlazorSamples.${{ parameters.projectToBuild }}'
# We want the dependency tree to be evaluated each time and to be sure that the dependencies are freshly downloaded
restoreArguments: '--ignore-failed-sources --no-cache --force'
feedsToUse: 'config'
nugetConfigPath: '$(Build.SourcesDirectory)\nuget.config'
# This task cannot use an apiKey directly (yet) so use any other service connection not based on an api key
verbosityRestore: 'Diagnostic'


- task: DotNetCoreCLI@2
displayName: 'dotnet restore 2'
continueOnError: true
enabled: true
inputs:
command: 'restore'
projects: '$(Build.SourcesDirectory)\browser\IgBlazorSamples.${{ parameters.projectToBuild }}'
# We want the dependency tree to be evaluated each time and to be sure that the dependencies are freshly downloaded
restoreArguments: '--ignore-failed-sources --no-cache --force --configfile $(Build.SourcesDirectory)\nuget.config'
# This task cannot use an apiKey directly (yet) so use any other service connection not based on an api key
externalFeedCredentials: 'IG ProGet IgniteUINuGet - Staging'
verbosityRestore: 'Diagnostic'

- task: NuGetCommand@2
inputs:
command: 'restore'
restoreSolution: '$(Build.SourcesDirectory)\browser\IgBlazorSamples.${{ parameters.projectToBuild }}\IgBlazorSamples.Client.csproj'
feedsToUse: 'config'
nugetConfigPath: '$(Build.SourcesDirectory)\nuget.config'
externalFeedCredentials: 'IG ProGet IgniteUINuGet - Staging'




- task: DeleteFiles@1
displayName: 'Delete NuGet.config file - used only at build time'
enabled: false
inputs:
SourceFolder: '$(Build.SourcesDirectory)\'
Contents: '**/nuget.config'

- task: CmdLine@2
# Using a CmldLine call for this opeation, because I couldn't get it to work as expected with the DotNetCoreCLI task
displayName: 'dotnet publish'
inputs:
# Skip the restore process as it is already done. Got an error when I tried skipping the build process (which is already done as well)
script: 'dotnet publish --no-restore -c release -o $(Build.SourcesDirectory)\browser\IgBlazorSamples.${{ parameters.projectToBuild }}\publish'
workingDirectory: '$(Build.SourcesDirectory)\browser\IgBlazorSamples.${{ parameters.projectToBuild }}'

- task: ArchiveFiles@2
displayName: 'Package samples browser'
inputs:
verbose: ${{ parameters.isVerbose }}
rootFolderOrFile: '$(Build.SourcesDirectory)/browser/IgBlazorSamples.${{ parameters.projectToBuild }}/publish'
includeRootFolder: false
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/BlazorSamples${{ parameters.projectToBuild }}.zip'
replaceExistingArchive: true

- task: PublishPipelineArtifact@1
displayName: 'Publish pipeline artifact'
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)/BlazorSamples${{ parameters.projectToBuild }}.zip'
artifact: 'BlazorSamples${{ parameters.projectToBuild }}'

- ${{ if eq(parameters.shouldCleanPostExectuion, true) }}:
- task: PostBuildCleanup@4
75 changes: 56 additions & 19 deletions azure-pipelines/templates/build-steps-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ parameters:
- name: isVerbose
default: false
- name: shouldCleanPostExectuion
- name: username
- name: password

steps:
- task: NodeTool@0
Expand Down Expand Up @@ -32,21 +34,59 @@ steps:
displayName: 'Install dotnet if not already present'
inputs:
packageType: 'sdk'
version: '8.0.100' # we are currently building a 8.0 app. TODO: Try upgrading to 8.x in the future
version: '9.0.101' # we are currently building a 8.0 app. TODO: Try upgrading to 8.x in the future
performMultiLevelLookup: false


- task: PowerShell@2
displayName: 'Generate NuGet.config for IG ProGet NuGet feed and u'
displayName: 'Generate NuGet.config for IG ProGet NuGet feed'
continueOnError: true
inputs:
targetType: 'inline'
script: |
script: |
dotnet new nugetconfig --force
# The name of the source doesn't currently matter as the credentials are attached thanks to URL matching - according to MS docs
dotnet nuget add source ${{ parameters.igNuGetFeedUrl }} --name "IG ProGet NuGet"
dotnet nuget add source ${{ parameters.igNuGetFeedUrl }} --name "IG ProGet NuGet" --allow-insecure-connections
# Manually add the allowInsecureConnections attribute to the nuget.config file
Write-Host "getting config file"
Write-Host "$(Build.SourcesDirectory)\nuget.config"
$nugetConfigPath = "$(Build.SourcesDirectory)\nuget.config"
Write-Host "getting xml content"
[xml]$nugetConfig = Get-Content $nugetConfigPath
$nugetConfig.configuration.packageSources.add | Where-Object { $_.name -eq "IG ProGet NuGet" } | ForEach-Object { $_.allowInsecureConnections = "true" }
# Add credentials to the nuget.config file
Write-Host "current config"
Write-Host $nugetConfig
Write-Host "adding credentials"
$packageSourceCredentials = $nugetConfig.CreateElement("packageSourceCredentials")
Write-Host "adding source"
$source = $nugetConfig.CreateElement("IG_x0020_ProGet_x0020_NuGet")

$addUsername = $nugetConfig.CreateElement("add")
Write-Host "adding username"
$userName = "${{ parameters.username }}"
# $userName = ConvertTo-SecureString "${{ parameters.username }}" -asPlainText -Force
Write-Host "username is"
Write-Host "$userName"
$addUsername.SetAttribute("key", "Username")
Write-Host "setting attribute"
$addUsername.SetAttribute("value", $userName)

$source.AppendChild($addUsername)

$addPassword = $nugetConfig.CreateElement("add")
Write-Host "adding password"
#$password = ConvertTo-SecureString "${{ parameters.password}}" -asPlainText -Force
$password = "${{ parameters.password}}"
$addPassword.SetAttribute("key", "ClearTextPassword")
$addPassword.SetAttribute("value", "$password")
$source.AppendChild($addPassword)

$packageSourceCredentials.AppendChild($source)
$nugetConfig.configuration.AppendChild($packageSourceCredentials)
Write-Host "writing contents to file"
$nugetConfig.OuterXml | Set-Content -Path $nugetConfigPath
failOnStderr: true
showWarnings: true
workingDirectory: '$(Build.SourcesDirectory)\browser\IgBlazorSamples.${{ parameters.projectToBuild }}'
workingDirectory: '$(Build.SourcesDirectory)'

- task: PowerShell@2
displayName: 'Identify trial packages and use licensed ones instead'
Expand All @@ -64,30 +104,27 @@ steps:
$xml.Save('.\IgBlazorSamples.${{ parameters.projectToBuild }}.csproj')
failOnStderr: true
showWarnings: true
workingDirectory: '$(Build.SourcesDirectory)\browser\IgBlazorSamples.${{ parameters.projectToBuild }}'
workingDirectory: '$(Build.SourcesDirectory)\browser\IgBlazorSamples.${{ parameters.projectToBuild }}'

- task: DotNetCoreCLI@2
displayName: 'dotnet restore'
enabled: true
inputs:
command: 'restore'
projects: '$(Build.SourcesDirectory)\browser\IgBlazorSamples.${{ parameters.projectToBuild }}'
# We want the dependency tree to be evaluated each time and to be sure that the dependencies are freshly downloaded
restoreArguments: '--ignore-failed-sources --no-cache --force'
restoreArguments: '--ignore-failed-sources --no-cache --force'
feedsToUse: 'config'
nugetConfigPath: '$(Build.SourcesDirectory)\browser\IgBlazorSamples.${{ parameters.projectToBuild }}\NuGet.Config'
nugetConfigPath: '$(Build.SourcesDirectory)\nuget.config'
# This task cannot use an apiKey directly (yet) so use any other service connection not based on an api key
externalFeedCredentials: 'IG ProGet IgniteUINuGet - Staging'
${{ if eq(parameters.isVerbose, true) }}:
verbosityRestore: 'Diagnostic'
${{ else }}:
verbosityRestore: 'Normal'

verbosityRestore: 'Diagnostic'

- task: DeleteFiles@1
displayName: 'Delete NuGet.config file - used only at build time'
enabled: true
inputs:
SourceFolder: '$(Build.SourcesDirectory)\browser\IgBlazorSamples.${{ parameters.projectToBuild }}\'
Contents: '**/NuGet.config'
SourceFolder: '$(Build.SourcesDirectory)\'
Contents: '**/nuget.config'

- task: CmdLine@2
# Using a CmldLine call for this opeation, because I couldn't get it to work as expected with the DotNetCoreCLI task
Expand All @@ -114,4 +151,4 @@ steps:
artifact: 'BlazorSamples${{ parameters.projectToBuild }}'

- ${{ if eq(parameters.shouldCleanPostExectuion, true) }}:
- task: PostBuildCleanup@4
- task: PostBuildCleanup@4
Loading
Loading