Skip to content

Commit 9c5614a

Browse files
author
Csernák Tamás
committed
renamed and moved projects
1 parent 20dc52c commit 9c5614a

36 files changed

+86
-55
lines changed

azure-pipelines.yml

+35-4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ variables:
1414
solution: '**/*.sln'
1515
buildPlatform: 'Any CPU'
1616
buildConfiguration: 'Release'
17+
major: '0'
18+
minor: '1'
19+
patch: '$(Build.BuildId)'
20+
ciTag: 'CI-$(Build.BuildNumber)'
21+
nugetVersion: ''
22+
producePackage: ''
1723

1824
steps:
1925
- task: NuGetToolInstaller@1
@@ -25,15 +31,40 @@ steps:
2531
projects: '**/*.csproj'
2632
workingDirectory: '$(System.DefaultWorkingDirectory)'
2733
arguments: "--configuration $(buildConfiguration)"
34+
35+
- task: PowerShell@2
36+
displayName: 'Write control variables'
37+
inputs:
38+
targetType: inline
39+
script: |
40+
function setVarAndLog ($var, $val) {
41+
Write-Host "setting $var = $val";
42+
Write-Host "##vso[task.setvariable variable=$var]$val";
43+
}
44+
45+
$ciBuilds = ("IndividualCI", "BatchedCI", "PullRequest");
46+
switch -Exact ('$(Build.Reason)') {
47+
{ $ciBuilds -contains $_ } {
48+
setVarAndLog("nugetVersion", "$(major).$(minor).$(patch)-$(ciTag)");
49+
setVarAndLog("producePackage", "true");
50+
}
51+
52+
Default {
53+
setVarAndLog("nugetVersion", "");
54+
setVarAndLog("producePackage", "false");
55+
}
56+
}
57+
58+
2859
- task: NuGetCommand@2
2960
displayName: 'Pack all projects into nuget'
61+
condition: eq($(producePackage), 'true')
3062
inputs:
3163
command: 'pack'
3264
packagesToPack: '**/*.csproj'
33-
versioningScheme: 'byPrereleaseNumber'
34-
majorVersion: '1'
35-
minorVersion: '0'
36-
patchVersion: '0'
65+
versioningScheme: 'byEnvVar'
66+
versionEnvVar: 'nugetVersion'
67+
3768
- task: DotNetCoreCLI@2
3869
displayName: 'Push packages to libs feed'
3970
inputs:

common/common.utils/Common/IIdentifiable.cs src/Foundation.Core/Common/IIdentifiable.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
namespace CST.Common.Utils.Common
3+
namespace Foundation.Core.Common
44
{
55
public interface IIdentifiable<TKey>
66
where TKey: struct, IEquatable<TKey>

common/common.utils/Common/TransactionHelper.cs src/Foundation.Core/Common/TransactionHelper.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Transactions;
33
using Microsoft.Extensions.Logging;
44

5-
namespace CST.Common.Utils.Common
5+
namespace Foundation.Core.Common
66
{
77
public static class TransactionHelper
88
{

common/common.utils/ExpressionExtensions.cs src/Foundation.Core/ExpressionExtensions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Collections.Generic;
33
using System.Linq.Expressions;
44

5-
namespace CST.Common.Utils
5+
namespace Foundation.Core
66
{
77
public static class ExpressionExtensions
88
{

common/common.utils/ServiceCollectionExtensions.cs src/Foundation.Core/ServiceCollectionExtensions.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
using CST.Common.Utils.ServiceStatusFeature;
1+
using Foundation.Core.ServiceStatusFeature;
22
using Microsoft.Extensions.DependencyInjection;
33

4-
namespace CST.Common.Utils
4+
namespace Foundation.Core
55
{
66
public static class ServiceCollectionExtensions
77
{

common/common.utils/ServiceStatusFeature/IServiceStatusSource.cs src/Foundation.Core/ServiceStatusFeature/IServiceStatusSource.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace CST.Common.Utils.ServiceStatusFeature
1+
namespace Foundation.Core.ServiceStatusFeature
22
{
33
public interface IServiceStatusSource
44
{

common/common.utils/ServiceStatusFeature/ServiceStatusController.cs src/Foundation.Core/ServiceStatusFeature/ServiceStatusController.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using System.Collections.Generic;
44
using System.Linq;
55

6-
namespace CST.Common.Utils.ServiceStatusFeature
6+
namespace Foundation.Core.ServiceStatusFeature
77
{
88
[ApiController, Route("api/[controller]")]
99
internal class ServiceStatusController : ControllerBase

common/common.utils/ServiceStatusFeature/ServiceStatusControllerFeatureProvider.cs src/Foundation.Core/ServiceStatusFeature/ServiceStatusControllerFeatureProvider.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using System.Collections.Generic;
44
using System.Reflection;
55

6-
namespace CST.Common.Utils.ServiceStatusFeature
6+
namespace Foundation.Core.ServiceStatusFeature
77
{
88
internal class ServiceStatusControllerFeatureProvider : IApplicationFeatureProvider<ControllerFeature>
99
{

common/common.utils/ServiceStatusFeature/ServiceStatusFeatureExtensions.cs src/Foundation.Core/ServiceStatusFeature/ServiceStatusFeatureExtensions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using System.Linq;
55
using System.Reflection;
66

7-
namespace CST.Common.Utils.ServiceStatusFeature
7+
namespace Foundation.Core.ServiceStatusFeature
88
{
99
internal static class ServiceStatusFeatureExtensions
1010
{

common/common.utils/StateMachineFeature/Abstraction/Edge.cs src/Foundation.Core/StateMachineFeature/Abstraction/Edge.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System;
2-
using CST.Common.Utils.ViewModel;
2+
using Foundation.Core.ViewModel;
33

4-
namespace CST.Common.Utils.StateMachineFeature.Abstraction
4+
namespace Foundation.Core.StateMachineFeature.Abstraction
55
{
66
public class Edge<TKey, TGraphEnum, TVertexEnum> : ISelectableSource<TKey>
77
where TKey : struct, IEquatable<TKey>

common/common.utils/StateMachineFeature/Abstraction/IStateMachineService.cs src/Foundation.Core/StateMachineFeature/Abstraction/IStateMachineService.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
namespace CST.Common.Utils.StateMachineFeature.Abstraction
3+
namespace Foundation.Core.StateMachineFeature.Abstraction
44
{
55
public interface IStateMachineService<TKey, TGraphEnum, TVertexEnum, TSubject>
66
where TKey : struct, IEquatable<TKey>

common/common.utils/StateMachineFeature/Abstraction/StateMachineSubject.cs src/Foundation.Core/StateMachineFeature/Abstraction/StateMachineSubject.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
namespace CST.Common.Utils.StateMachineFeature.Abstraction
3+
namespace Foundation.Core.StateMachineFeature.Abstraction
44
{
55
public abstract class StateMachineSubject<TKey, TGraphEnum, TVertexEnum, TSubject>
66
where TKey : struct, IEquatable<TKey>

common/common.utils/StateMachineFeature/Abstraction/StateMachineSubjectMoment.cs src/Foundation.Core/StateMachineFeature/Abstraction/StateMachineSubjectMoment.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
namespace CST.Common.Utils.StateMachineFeature.Abstraction
3+
namespace Foundation.Core.StateMachineFeature.Abstraction
44
{
55
public class StateMachineSubjectMoment<TKey, TGraphEnum, TVertexEnum, TSubject>
66
where TKey : struct, IEquatable<TKey>

common/common.utils/StateMachineFeature/Abstraction/Vertex.cs src/Foundation.Core/StateMachineFeature/Abstraction/Vertex.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
using System;
22
using System.Collections.Generic;
3-
using CST.Common.Utils.ViewModel;
3+
using Foundation.Core.ViewModel;
44

5-
namespace CST.Common.Utils.StateMachineFeature.Abstraction
5+
namespace Foundation.Core.StateMachineFeature.Abstraction
66
{
77
public class Vertex<TKey, TGraphEnum, TVertexEnum> : ISelectableSource<TKey>
88
where TKey : struct, IEquatable<TKey>

common/common.utils/StateMachineFeature/Exceptions/EdgeDoesNotExistException.cs src/Foundation.Core/StateMachineFeature/Exceptions/EdgeDoesNotExistException.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
namespace CST.Common.Utils.StateMachineFeature.Exceptions
3+
namespace Foundation.Core.StateMachineFeature.Exceptions
44
{
55
public class EdgeDoesNotExistException<TKey, TVertexEnum> : Exception
66
where TKey : IEquatable<TKey>

common/common.utils/StateMachineFeature/Exceptions/NoTrivialRootVertexExistsException.cs src/Foundation.Core/StateMachineFeature/Exceptions/NoTrivialRootVertexExistsException.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
namespace CST.Common.Utils.StateMachineFeature.Exceptions
3+
namespace Foundation.Core.StateMachineFeature.Exceptions
44
{
55
public class NoTrivialRootVertexExists<TGraphEnum> : Exception
66
where TGraphEnum : struct, IConvertible

common/common.utils/StateMachineFeature/Exceptions/VertexNotConnectedToEdgeException.cs src/Foundation.Core/StateMachineFeature/Exceptions/VertexNotConnectedToEdgeException.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
namespace CST.Common.Utils.StateMachineFeature.Exceptions
3+
namespace Foundation.Core.StateMachineFeature.Exceptions
44
{
55
public class VertexNotConnectedToEdgeException : Exception
66
{

common/common.utils/StateMachineFeature/FeatureBuilder/FeatureOptions.cs src/Foundation.Core/StateMachineFeature/FeatureBuilder/FeatureOptions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace CST.Common.Utils.StateMachineFeature.FeatureBuilder
1+
namespace Foundation.Core.StateMachineFeature.FeatureBuilder
22
{
33
public struct FeatureOptions
44
{

common/common.utils/StateMachineFeature/FeatureBuilder/IStateMachineFeatureBuilder.cs src/Foundation.Core/StateMachineFeature/FeatureBuilder/IStateMachineFeatureBuilder.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
using System;
2-
using CST.Common.Utils.StateMachineFeature.Abstraction;
3-
using CST.Common.Utils.StateMachineFeature.Services;
2+
using Foundation.Core.StateMachineFeature.Abstraction;
3+
using Foundation.Core.StateMachineFeature.Services;
44

5-
namespace CST.Common.Utils.StateMachineFeature.FeatureBuilder
5+
namespace Foundation.Core.StateMachineFeature.FeatureBuilder
66
{
77
public interface IStateMachineFeatureBuilder<TKey, TVE, TGE, TSubject, TRepository>
88
where TKey : struct, IEquatable<TKey>

common/common.utils/StateMachineFeature/FeatureBuilder/StateMachineFeatureBuilder.cs src/Foundation.Core/StateMachineFeature/FeatureBuilder/StateMachineFeatureBuilder.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
using System;
2-
using CST.Common.Utils.StateMachineFeature.Abstraction;
3-
using CST.Common.Utils.StateMachineFeature.Services;
4-
using CST.Common.Utils.StateMachineFeature.ViewModel;
2+
using Foundation.Core.StateMachineFeature.Abstraction;
3+
using Foundation.Core.StateMachineFeature.Services;
4+
using Foundation.Core.StateMachineFeature.ViewModel;
55
using Microsoft.Extensions.DependencyInjection;
66

7-
namespace CST.Common.Utils.StateMachineFeature.FeatureBuilder
7+
namespace Foundation.Core.StateMachineFeature.FeatureBuilder
88
{
99
internal class StateMachineFeatureBuilder : IStateMachineFeatureBuilder
1010
{

common/common.utils/StateMachineFeature/FeatureBuilder/StateMachineFeatureProvider.cs src/Foundation.Core/StateMachineFeature/FeatureBuilder/StateMachineFeatureProvider.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using Microsoft.AspNetCore.Mvc.ApplicationParts;
55
using Microsoft.AspNetCore.Mvc.Controllers;
66

7-
namespace CST.Common.Utils.StateMachineFeature.FeatureBuilder
7+
namespace Foundation.Core.StateMachineFeature.FeatureBuilder
88
{
99
internal class StateMachineFeatureProvider<TKey, TSubject> : IApplicationFeatureProvider<ControllerFeature>
1010
where TKey : struct, IEquatable<TKey>

common/common.utils/StateMachineFeature/Services/BaseStateMachineRepository.cs src/Foundation.Core/StateMachineFeature/Services/BaseStateMachineRepository.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
using CST.Common.Utils.StateMachineFeature.Abstraction;
2-
using System;
1+
using System;
32
using System.Collections.Generic;
3+
using Foundation.Core.StateMachineFeature.Abstraction;
44

5-
namespace CST.Common.Utils.StateMachineFeature.Services
5+
namespace Foundation.Core.StateMachineFeature.Services
66
{
77
public abstract class BaseStateMachineRepository<TKey, TGraphEnum, TVertexEnum, TSubject>
88
where TKey : struct, IEquatable<TKey>

common/common.utils/StateMachineFeature/Services/BaseStateMachineService.cs src/Foundation.Core/StateMachineFeature/Services/BaseStateMachineService.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Linq;
4-
using CST.Common.Utils.StateMachineFeature.Abstraction;
5-
using CST.Common.Utils.StateMachineFeature.Exceptions;
6-
using CST.Common.Utils.StateMachineFeature.ViewModel;
7-
using CST.Common.Utils.ViewModel;
4+
using Foundation.Core.StateMachineFeature.Abstraction;
5+
using Foundation.Core.StateMachineFeature.Exceptions;
6+
using Foundation.Core.StateMachineFeature.ViewModel;
7+
using Foundation.Core.ViewModel;
88

9-
namespace CST.Common.Utils.StateMachineFeature.Services
9+
namespace Foundation.Core.StateMachineFeature.Services
1010
{
1111
public abstract class BaseStateMachineService<TKey, TGraphEnum, TVertexEnum, TSubject, TRepository> :
1212
IStateMachineMetaService<TKey>, IStateMachineService<TKey, TGraphEnum, TVertexEnum, TSubject> where TKey : struct, IEquatable<TKey>

common/common.utils/StateMachineFeature/StateMachineController.cs src/Foundation.Core/StateMachineFeature/StateMachineController.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
using System;
2-
using CST.Common.Utils.StateMachineFeature.ViewModel;
2+
using Foundation.Core.StateMachineFeature.ViewModel;
33
using Microsoft.AspNetCore.Mvc;
44

5-
namespace CST.Common.Utils.StateMachineFeature
5+
namespace Foundation.Core.StateMachineFeature
66
{
77
[Controller]
88
public class StateMachineController<TKey, TSubject> : ControllerBase

common/common.utils/StateMachineFeature/StateMachineControllerNameConvention.cs src/Foundation.Core/StateMachineFeature/StateMachineControllerNameConvention.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using Microsoft.AspNetCore.Mvc;
33
using Microsoft.AspNetCore.Mvc.ApplicationModels;
44

5-
namespace CST.Common.Utils.StateMachineFeature
5+
namespace Foundation.Core.StateMachineFeature
66
{
77
public class StateMachineControllerNameConvention<TKey, TSubject> : IControllerModelConvention
88
where TKey : struct, IEquatable<TKey>

common/common.utils/StateMachineFeature/StateMachineFeatureExtensions.cs src/Foundation.Core/StateMachineFeature/StateMachineFeatureExtensions.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
using System;
2-
using CST.Common.Utils.StateMachineFeature.FeatureBuilder;
2+
using Foundation.Core.StateMachineFeature.FeatureBuilder;
33
using Microsoft.Extensions.DependencyInjection;
44

5-
namespace CST.Common.Utils.StateMachineFeature
5+
namespace Foundation.Core.StateMachineFeature
66
{
77
public static class StateMachineFeatureExtensions
88
{

common/common.utils/StateMachineFeature/ViewModel/IStateMachineMetaService.cs src/Foundation.Core/StateMachineFeature/ViewModel/IStateMachineMetaService.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
using System;
22
using System.Collections.Generic;
3-
using CST.Common.Utils.ViewModel;
3+
using Foundation.Core.ViewModel;
44

5-
namespace CST.Common.Utils.StateMachineFeature.ViewModel
5+
namespace Foundation.Core.StateMachineFeature.ViewModel
66
{
77
public interface IStateMachineMetaService<TKey>
88
where TKey : struct, IEquatable<TKey>

common/common.utils/ViewModel/ChildCollection.cs src/Foundation.Core/ViewModel/ChildCollection.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.Collections.Generic;
22
using System.Linq;
33

4-
namespace CST.Common.Utils.ViewModel
4+
namespace Foundation.Core.ViewModel
55
{
66
public class ChildCollection<T>
77
{

common/common.utils/ViewModel/IUpdateableItemCollectionSource.cs src/Foundation.Core/ViewModel/IUpdateableItemCollectionSource.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System.Collections.Generic;
22

3-
namespace CST.Common.Utils.ViewModel
3+
namespace Foundation.Core.ViewModel
44
{
55
public interface IUpdateableItemCollectionSource<TItem>
66
{

common/common.utils/ViewModel/Selectable.cs src/Foundation.Core/ViewModel/Selectable.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System;
22
using System.Diagnostics.CodeAnalysis;
33

4-
namespace CST.Common.Utils.ViewModel
4+
namespace Foundation.Core.ViewModel
55
{
66
public interface ISelectableSource<out TKey>
77
where TKey : struct, IEquatable<TKey>

common/common.utils/ViewModel/UpdateableItem.cs src/Foundation.Core/ViewModel/UpdateableItem.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace CST.Common.Utils.ViewModel
1+
namespace Foundation.Core.ViewModel
22
{
33
public class UpdateableItem<T>
44
{

common/common.utils/ViewModel/UpdateableItemState.cs src/Foundation.Core/ViewModel/UpdateableItemState.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace CST.Common.Utils.ViewModel
1+
namespace Foundation.Core.ViewModel
22
{
33
public enum UpdateableItemState
44
{

common/common.utils.razor/Abstraction/IComponentSource.cs src/Foundation.Razor/Abstraction/IComponentSource.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System.Reflection;
22

3-
namespace CST.Common.Utils.Razor.Abstraction
3+
namespace Foundation.Razor.Abstraction
44
{
55
public interface IComponentSource
66
{

CST.Common.sln.sln src/Foundation.sln

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 16
44
VisualStudioVersion = 16.0.29806.167
55
MinimumVisualStudioVersion = 15.0.26124.0
6-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CST.Common.Utils", "common\common.utils\CST.Common.Utils.csproj", "{DB7C6DAE-B467-42F2-9EF8-C829BC0DD2BE}"
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Foundation.Core", "Foundation.Core\Foundation.Core.csproj", "{DB7C6DAE-B467-42F2-9EF8-C829BC0DD2BE}"
77
EndProject
8-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CST.Common.Utils.Razor", "common\common.utils.razor\CST.Common.Utils.Razor.csproj", "{E7CFBF9F-7F0B-404E-8750-A3F249E77153}"
8+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Foundation.Razor", "Foundation.Razor\Foundation.Razor.csproj", "{E7CFBF9F-7F0B-404E-8750-A3F249E77153}"
99
EndProject
1010
Global
1111
GlobalSection(SolutionConfigurationPlatforms) = preSolution

0 commit comments

Comments
 (0)