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

Wpf app #7

Merged
merged 9 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/post-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:

jobs:
merge-to-stable:
runs-on: ubuntu-latest
runs-on: windows-latest
steps:
- name: 🛒 Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -42,16 +42,16 @@ jobs:
distribution: 'zulu'

- name: 🧹 Clean
run: dotnet clean -c Release && dotnet nuget locals all --clear
run: dotnet clean Atc.Azure.IoT.sln -c Release && dotnet nuget locals all --clear

- name: 🔁 Restore packages
run: dotnet restore
run: dotnet restore Atc.Azure.IoT.sln

- name: 🛠️ Build
run: dotnet build -c Release --no-restore /p:UseSourceLink=true
run: dotnet build Atc.Azure.IoT.sln -c Release --no-restore /p:UseSourceLink=true

- name: 🧪 Run unit tests
run: dotnet test -c Release --no-build --filter "Category!=Integration"
run: dotnet test Atc.Azure.IoT.sln -c Release --no-build --filter "Category!=Integration"

- name: 🌩️ SonarCloud install scanner
run: dotnet tool install --global dotnet-sonarscanner
Expand Down
37 changes: 26 additions & 11 deletions .github/workflows/pre-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,32 @@ jobs:
with:
dotnet-version: '8.0.x'

- name: 🧹 Clean
run: dotnet clean -c Release && dotnet nuget locals all --clear
- name: 🧹 Clean non-wpf solution
run: dotnet clean Atc.Azure.IoT-WithoutWpf.sln -c Release && dotnet nuget locals all --clear
if: runner.os != 'Windows'

- name: 🔁 Restore packages
run: dotnet restore
- name: 🧹 Clean all
run: dotnet clean Atc.Azure.IoT.sln -c Release && dotnet nuget locals all --clear
if: runner.os == 'Windows'

- name: 🔁 Restore packages non-wpf solution
run: dotnet restore Atc.Azure.IoT-WithoutWpf.sln
if: runner.os != 'Windows'

- name: 🔁 Restore packages all
run: dotnet restore Atc.Azure.IoT.sln
if: runner.os == 'Windows'

- name: 🛠️ Build non-wpf solution
run: dotnet build Atc.Azure.IoT-WithoutWpf.sln -c Release --no-restore
if: runner.os != 'Windows'

- name: 🛠️ Building library in release mode
run: dotnet build -c Release --no-restore
- name: 🛠️ Build all
run: dotnet build Atc.Azure.IoT.sln -c Release --no-restore
if: runner.os == 'Windows'

dotnet-test:
runs-on: ubuntu-latest
runs-on: windows-latest
needs:
- dotnet-build
steps:
Expand All @@ -49,10 +64,10 @@ jobs:
dotnet-version: '8.0.x'

- name: 🔁 Restore packages
run: dotnet restore
run: dotnet restore Atc.Azure.IoT.sln

- name: 🛠️ Build
run: dotnet build -c Release --no-restore /p:UseSourceLink=true
- name: 🛠️ Build all
run: dotnet build Atc.Azure.IoT.sln -c Release --no-restore /p:UseSourceLink=true

- name: 🧪 Run unit tests
run: dotnet test -c Release --no-build --filter "Category!=Integration"
run: dotnet test Atc.Azure.IoT.sln -c Release --no-build --filter "Category!=Integration"
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:
jobs:
release:
if: github.ref == 'refs/heads/stable'
runs-on: ubuntu-latest
runs-on: windows-latest
steps:
- name: 🛒 Checkout repository
uses: actions/checkout@v4
Expand All @@ -33,13 +33,13 @@ jobs:
dotnet-version: '8.0.x'

- name: 🧹 Clean
run: dotnet clean -c Release && dotnet nuget locals all --clear
run: dotnet clean Atc.Azure.IoT.sln -c Release && dotnet nuget locals all --clear

- name: 🔁 Restore packages
run: dotnet restore
run: dotnet restore Atc.Azure.IoT.sln

- name: 🛠️ Building library in release mode
run: dotnet build -c Release --no-restore /p:UseSourceLink=true
run: dotnet build Atc.Azure.IoT.sln -c Release --no-restore /p:UseSourceLink=true

- name: ⏩ Merge to release-branch
run: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -397,3 +397,4 @@ FodyWeavers.xsd
# JetBrains Rider
*.sln.iml
/sample/src/IoTEdgeModules/modules/opcpublishernodemanagermodule/appsettings.emulator.json
/src/Atc.Azure.IoT.Wpf.App/appsettings.development.json
116 changes: 116 additions & 0 deletions Atc.Azure.IoT-WithoutWpf.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 15.0.26124.0
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{69C84246-AA75-43E8-94B2-66FD555B18B0}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{DAC1423F-D386-4838-AEA0-8BFFBB449ED2}"
ProjectSection(SolutionItems) = preProject
README.md = README.md
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{58BC6728-197C-484C-A8EC-38BC2F0B58C4}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Atc.Azure.IoT", "src\Atc.Azure.IoT\Atc.Azure.IoT.csproj", "{A6CEF902-11CB-4877-BBD2-FBE1AF27A62F}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Atc.Azure.IotEdge.Client.Tests", "test\Atc.Azure.IotEdge.Client.Tests\Atc.Azure.IotEdge.Client.Tests.csproj", "{607C2690-8F7C-4348-B38D-6DE633FC37F9}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Atc.Azure.IoT.Tests", "test\Atc.Azure.IoT.Tests\Atc.Azure.IoT.Tests.csproj", "{CB8A2B57-146C-4D3F-B02C-F6DE21C5DE42}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Atc.Azure.IoT.CLI", "src\Atc.Azure.IoT.CLI\Atc.Azure.IoT.CLI.csproj", "{2326FBB5-CB4B-4153-AF13-22152C265D5F}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Atc.Azure.IoTEdge", "src\Atc.Azure.IoTEdge\Atc.Azure.IoTEdge.csproj", "{04852479-8932-4AE0-8D87-AABAED0EA971}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Atc.Azure.IoTEdge.DeviceEmulator", "src\Atc.Azure.IoTEdge.DeviceEmulator\Atc.Azure.IoTEdge.DeviceEmulator.csproj", "{23EA1D43-328D-4EC1-830E-C1797E1666A6}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "sample", "sample", "{E84E1AF8-ACAF-4D1A-A59D-999E873C0A71}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{711F4C2D-06C4-4A34-BDF3-5FA737DB1133}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "IoTEdgeModules", "IoTEdgeModules", "{E122CEC1-82DD-43C7-952A-CBF61C0273B5}"
ProjectSection(SolutionItems) = preProject
sample\src\IoTEdgeModules\deployment.debug.template.json = sample\src\IoTEdgeModules\deployment.debug.template.json
sample\src\IoTEdgeModules\deployment.template.emulation.manifest.json = sample\src\IoTEdgeModules\deployment.template.emulation.manifest.json
sample\src\IoTEdgeModules\deployment.template.json = sample\src\IoTEdgeModules\deployment.template.json
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "modules", "modules", "{17137DCD-1D96-4640-9977-4CC9EED18057}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Atc.Azure.Iot.Sample.Modules.Contracts", "sample\src\Atc.Azure.Iot.Sample.Modules.Contracts\Atc.Azure.Iot.Sample.Modules.Contracts.csproj", "{D996F215-48C7-4489-9B26-7AE3221A394A}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SimulationModule", "sample\src\IoTEdgeModules\modules\simulationmodule\SimulationModule.csproj", "{B5E634E9-9CF8-469B-9312-B439E797A96D}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OpcPublisherNodeManagerModule", "sample\src\IoTEdgeModules\modules\opcpublishernodemanagermodule\OpcPublisherNodeManagerModule.csproj", "{1A393DB3-C6F8-4736-9A5A-462394D320A5}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Atc.Azure.Iot.Certificate.Sample", "sample\src\Atc.Azure.Iot.Certificate.Sample\Atc.Azure.Iot.Certificate.Sample.csproj", "{CBD19CC8-E6BF-4BF8-8121-A4E325115143}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{A6CEF902-11CB-4877-BBD2-FBE1AF27A62F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A6CEF902-11CB-4877-BBD2-FBE1AF27A62F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A6CEF902-11CB-4877-BBD2-FBE1AF27A62F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A6CEF902-11CB-4877-BBD2-FBE1AF27A62F}.Release|Any CPU.Build.0 = Release|Any CPU
{607C2690-8F7C-4348-B38D-6DE633FC37F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{607C2690-8F7C-4348-B38D-6DE633FC37F9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{607C2690-8F7C-4348-B38D-6DE633FC37F9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{607C2690-8F7C-4348-B38D-6DE633FC37F9}.Release|Any CPU.Build.0 = Release|Any CPU
{CB8A2B57-146C-4D3F-B02C-F6DE21C5DE42}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CB8A2B57-146C-4D3F-B02C-F6DE21C5DE42}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CB8A2B57-146C-4D3F-B02C-F6DE21C5DE42}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CB8A2B57-146C-4D3F-B02C-F6DE21C5DE42}.Release|Any CPU.Build.0 = Release|Any CPU
{2326FBB5-CB4B-4153-AF13-22152C265D5F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2326FBB5-CB4B-4153-AF13-22152C265D5F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2326FBB5-CB4B-4153-AF13-22152C265D5F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2326FBB5-CB4B-4153-AF13-22152C265D5F}.Release|Any CPU.Build.0 = Release|Any CPU
{04852479-8932-4AE0-8D87-AABAED0EA971}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{04852479-8932-4AE0-8D87-AABAED0EA971}.Debug|Any CPU.Build.0 = Debug|Any CPU
{04852479-8932-4AE0-8D87-AABAED0EA971}.Release|Any CPU.ActiveCfg = Release|Any CPU
{04852479-8932-4AE0-8D87-AABAED0EA971}.Release|Any CPU.Build.0 = Release|Any CPU
{23EA1D43-328D-4EC1-830E-C1797E1666A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{23EA1D43-328D-4EC1-830E-C1797E1666A6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{23EA1D43-328D-4EC1-830E-C1797E1666A6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{23EA1D43-328D-4EC1-830E-C1797E1666A6}.Release|Any CPU.Build.0 = Release|Any CPU
{D996F215-48C7-4489-9B26-7AE3221A394A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D996F215-48C7-4489-9B26-7AE3221A394A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D996F215-48C7-4489-9B26-7AE3221A394A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D996F215-48C7-4489-9B26-7AE3221A394A}.Release|Any CPU.Build.0 = Release|Any CPU
{B5E634E9-9CF8-469B-9312-B439E797A96D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B5E634E9-9CF8-469B-9312-B439E797A96D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B5E634E9-9CF8-469B-9312-B439E797A96D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B5E634E9-9CF8-469B-9312-B439E797A96D}.Release|Any CPU.Build.0 = Release|Any CPU
{1A393DB3-C6F8-4736-9A5A-462394D320A5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1A393DB3-C6F8-4736-9A5A-462394D320A5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1A393DB3-C6F8-4736-9A5A-462394D320A5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1A393DB3-C6F8-4736-9A5A-462394D320A5}.Release|Any CPU.Build.0 = Release|Any CPU
{CBD19CC8-E6BF-4BF8-8121-A4E325115143}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CBD19CC8-E6BF-4BF8-8121-A4E325115143}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CBD19CC8-E6BF-4BF8-8121-A4E325115143}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CBD19CC8-E6BF-4BF8-8121-A4E325115143}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{A6CEF902-11CB-4877-BBD2-FBE1AF27A62F} = {69C84246-AA75-43E8-94B2-66FD555B18B0}
{607C2690-8F7C-4348-B38D-6DE633FC37F9} = {58BC6728-197C-484C-A8EC-38BC2F0B58C4}
{CB8A2B57-146C-4D3F-B02C-F6DE21C5DE42} = {58BC6728-197C-484C-A8EC-38BC2F0B58C4}
{2326FBB5-CB4B-4153-AF13-22152C265D5F} = {69C84246-AA75-43E8-94B2-66FD555B18B0}
{04852479-8932-4AE0-8D87-AABAED0EA971} = {69C84246-AA75-43E8-94B2-66FD555B18B0}
{23EA1D43-328D-4EC1-830E-C1797E1666A6} = {69C84246-AA75-43E8-94B2-66FD555B18B0}
{711F4C2D-06C4-4A34-BDF3-5FA737DB1133} = {E84E1AF8-ACAF-4D1A-A59D-999E873C0A71}
{E122CEC1-82DD-43C7-952A-CBF61C0273B5} = {711F4C2D-06C4-4A34-BDF3-5FA737DB1133}
{17137DCD-1D96-4640-9977-4CC9EED18057} = {E122CEC1-82DD-43C7-952A-CBF61C0273B5}
{D996F215-48C7-4489-9B26-7AE3221A394A} = {711F4C2D-06C4-4A34-BDF3-5FA737DB1133}
{B5E634E9-9CF8-469B-9312-B439E797A96D} = {17137DCD-1D96-4640-9977-4CC9EED18057}
{1A393DB3-C6F8-4736-9A5A-462394D320A5} = {17137DCD-1D96-4640-9977-4CC9EED18057}
{CBD19CC8-E6BF-4BF8-8121-A4E325115143} = {711F4C2D-06C4-4A34-BDF3-5FA737DB1133}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {04120463-05C5-417B-8D7A-2D7D35B71A07}
EndGlobalSection
EndGlobal
7 changes: 7 additions & 0 deletions Atc.Azure.IoT.sln
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OpcPublisherNodeManagerModu
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Atc.Azure.Iot.Certificate.Sample", "sample\src\Atc.Azure.Iot.Certificate.Sample\Atc.Azure.Iot.Certificate.Sample.csproj", "{CBD19CC8-E6BF-4BF8-8121-A4E325115143}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Atc.Azure.IoT.Wpf.App", "src\Atc.Azure.IoT.Wpf.App\Atc.Azure.IoT.Wpf.App.csproj", "{91F3342D-3511-4B66-A0E0-3CC4DE184387}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -91,6 +93,10 @@ Global
{CBD19CC8-E6BF-4BF8-8121-A4E325115143}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CBD19CC8-E6BF-4BF8-8121-A4E325115143}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CBD19CC8-E6BF-4BF8-8121-A4E325115143}.Release|Any CPU.Build.0 = Release|Any CPU
{91F3342D-3511-4B66-A0E0-3CC4DE184387}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{91F3342D-3511-4B66-A0E0-3CC4DE184387}.Debug|Any CPU.Build.0 = Debug|Any CPU
{91F3342D-3511-4B66-A0E0-3CC4DE184387}.Release|Any CPU.ActiveCfg = Release|Any CPU
{91F3342D-3511-4B66-A0E0-3CC4DE184387}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -109,6 +115,7 @@ Global
{B5E634E9-9CF8-469B-9312-B439E797A96D} = {17137DCD-1D96-4640-9977-4CC9EED18057}
{1A393DB3-C6F8-4736-9A5A-462394D320A5} = {17137DCD-1D96-4640-9977-4CC9EED18057}
{CBD19CC8-E6BF-4BF8-8121-A4E325115143} = {711F4C2D-06C4-4A34-BDF3-5FA737DB1133}
{91F3342D-3511-4B66-A0E0-3CC4DE184387} = {69C84246-AA75-43E8-94B2-66FD555B18B0}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {04120463-05C5-417B-8D7A-2D7D35B71A07}
Expand Down
4 changes: 2 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
<ItemGroup Label="Code Analyzers">
<PackageReference Include="AsyncFixer" Version="1.6.0" PrivateAssets="All" />
<PackageReference Include="Asyncify" Version="0.9.7" PrivateAssets="All" />
<PackageReference Include="Meziantou.Analyzer" Version="2.0.149" PrivateAssets="All" />
<PackageReference Include="Meziantou.Analyzer" Version="2.0.153" PrivateAssets="All" />
<PackageReference Include="SecurityCodeScan.VS2019" Version="5.6.7" PrivateAssets="All" />
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.507" PrivateAssets="All" />
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.23.2.88755" PrivateAssets="All" />
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.25.1.91650" PrivateAssets="All" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Atc" Version="2.0.469" />
<PackageReference Include="Atc" Version="2.0.472" />
<PackageReference Include="Microsoft.Azure.Devices.Client" Version="1.42.3" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="8.0.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Atc" Version="2.0.469" />
<PackageReference Include="Atc" Version="2.0.472" />
<PackageReference Include="Microsoft.Azure.Devices.Client" Version="1.42.3" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="8.0.0" />
Expand All @@ -18,7 +18,7 @@
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" />
<PackageReference Include="Quartz.Extensions.Hosting" Version="3.8.1" />
<PackageReference Include="Quartz.Extensions.Hosting" Version="3.9.0" />
<PackageReference Include="System.Runtime.Loader" Version="4.3.0" />
</ItemGroup>

Expand Down
4 changes: 2 additions & 2 deletions src/Atc.Azure.IoT.CLI/Atc.Azure.IoT.CLI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Atc" Version="2.0.469" />
<PackageReference Include="Atc.Console.Spectre" Version="2.0.469" />
<PackageReference Include="Atc" Version="2.0.472" />
<PackageReference Include="Atc.Console.Spectre" Version="2.0.472" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
Expand Down
25 changes: 25 additions & 0 deletions src/Atc.Azure.IoT.Wpf.App/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# ATC coding rules - https://github.com/atc-net/atc-coding-rules
# Version: 1.0.0
# Updated: 27-03-2024
# Location: wpf
# Distribution: Frameworks

##########################################
# Code Analyzers Rules
##########################################
[*.{cs}]

dotnet_diagnostic.MA0004.severity = error # Use Task.ConfigureAwait(false) https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0004.md
dotnet_diagnostic.MA0048.severity = none # To support partial classes - File will not match type name.

##########################################
# Custom - Code Analyzers Rules
##########################################

dotnet_diagnostic.MA0049.severity = none # Type name should not match containing namespace (https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0049.md)

dotnet_diagnostic.S4487.severity = none #

dotnet_diagnostic.CA1724.severity = none #

dotnet_diagnostic.IDE0052.severity = none #
17 changes: 17 additions & 0 deletions src/Atc.Azure.IoT.Wpf.App/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<Application
x:Class="Atc.Azure.IoT.Wpf.App.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Exit="ApplicationExit"
Startup="ApplicationStartup">
<Application.Resources>
<ResourceDictionary>

<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/Atc.Wpf.Controls;component/Styles/Controls.xaml" />
<ResourceDictionary Source="pack://application:,,,/Atc.Wpf.Theming;component/Styles/Default.xaml" />
</ResourceDictionary.MergedDictionaries>

</ResourceDictionary>
</Application.Resources>
</Application>
Loading