diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml
index d54d1a8..a78e05a 100644
--- a/.gitea/workflows/ci.yml
+++ b/.gitea/workflows/ci.yml
@@ -6,10 +6,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- - name: build using gcc
- run: gcc -Wall -Werror main.c -o program
- - name: Archive production artifacts
- uses: actions/upload-artifact@v3
+ - uses: actions/setup-dotnet@v3
with:
- name: program
- path: program
\ No newline at end of file
+ dotnet-version: '8.0.x'
+ - run: dotnet restore
+ - run: dotnet build
+ - run: dotnet test
+ - run: dotnet publish -o app -r linux-x64 --sc /p:PublishSingleFile=true,AssemblyName=app
+ - run: tar cf app.tar app/
+ - uses: actions/upload-artifact@v3
+ with:
+ name: app.tar
+ path: app.tar
+
+ test:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/download-artifact@v3
+ with:
+ name: app.tar
+ - run: tar xf app.tar/app.tar
+ - run: ./app/app
diff --git a/Program.cs b/Program.cs
new file mode 100644
index 0000000..3751555
--- /dev/null
+++ b/Program.cs
@@ -0,0 +1,2 @@
+// See https://aka.ms/new-console-template for more information
+Console.WriteLine("Hello, World!");
diff --git a/lab7.csproj b/lab7.csproj
new file mode 100644
index 0000000..2150e37
--- /dev/null
+++ b/lab7.csproj
@@ -0,0 +1,10 @@
+
+
+
+ Exe
+ net8.0
+ enable
+ enable
+
+
+
diff --git a/main.c b/main.c
deleted file mode 100644
index 99482fb..0000000
--- a/main.c
+++ /dev/null
@@ -1,7 +0,0 @@
-#include
-
-int main()
-{
- printf("Halo, Welt!");
- return 0;
-}
\ No newline at end of file
diff --git a/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs b/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs
new file mode 100644
index 0000000..2217181
--- /dev/null
+++ b/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs
@@ -0,0 +1,4 @@
+//
+using System;
+using System.Reflection;
+[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
diff --git a/obj/Debug/net8.0/lab7.AssemblyInfo.cs b/obj/Debug/net8.0/lab7.AssemblyInfo.cs
new file mode 100644
index 0000000..481ae1f
--- /dev/null
+++ b/obj/Debug/net8.0/lab7.AssemblyInfo.cs
@@ -0,0 +1,22 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+using System;
+using System.Reflection;
+
+[assembly: System.Reflection.AssemblyCompanyAttribute("lab7")]
+[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
+[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+c540e16f98ed8cbde4e9fc1efc547413e186e4d3")]
+[assembly: System.Reflection.AssemblyProductAttribute("lab7")]
+[assembly: System.Reflection.AssemblyTitleAttribute("lab7")]
+[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
+
+// Generated by the MSBuild WriteCodeFragment class.
+
diff --git a/obj/Debug/net8.0/lab7.AssemblyInfoInputs.cache b/obj/Debug/net8.0/lab7.AssemblyInfoInputs.cache
new file mode 100644
index 0000000..f8f0d6d
--- /dev/null
+++ b/obj/Debug/net8.0/lab7.AssemblyInfoInputs.cache
@@ -0,0 +1 @@
+179ea4abd62fce369684b07c19ca29439d0a04e06ad79a0c4e5b7bc97c3014f9
diff --git a/obj/Debug/net8.0/lab7.GeneratedMSBuildEditorConfig.editorconfig b/obj/Debug/net8.0/lab7.GeneratedMSBuildEditorConfig.editorconfig
new file mode 100644
index 0000000..003ae7e
--- /dev/null
+++ b/obj/Debug/net8.0/lab7.GeneratedMSBuildEditorConfig.editorconfig
@@ -0,0 +1,15 @@
+is_global = true
+build_property.TargetFramework = net8.0
+build_property.TargetPlatformMinVersion =
+build_property.UsingMicrosoftNETSdkWeb =
+build_property.ProjectTypeGuids =
+build_property.InvariantGlobalization =
+build_property.PlatformNeutralAssembly =
+build_property.EnforceExtendedAnalyzerRules =
+build_property._SupportedPlatformList = Linux,macOS,Windows
+build_property.RootNamespace = lab7
+build_property.ProjectDir = c:\Users\student\Desktop\lab7\lab7\
+build_property.EnableComHosting =
+build_property.EnableGeneratedComInterfaceComImportInterop =
+build_property.EffectiveAnalysisLevelStyle = 8.0
+build_property.EnableCodeStyleSeverity =
diff --git a/obj/Debug/net8.0/lab7.GlobalUsings.g.cs b/obj/Debug/net8.0/lab7.GlobalUsings.g.cs
new file mode 100644
index 0000000..8578f3d
--- /dev/null
+++ b/obj/Debug/net8.0/lab7.GlobalUsings.g.cs
@@ -0,0 +1,8 @@
+//
+global using global::System;
+global using global::System.Collections.Generic;
+global using global::System.IO;
+global using global::System.Linq;
+global using global::System.Net.Http;
+global using global::System.Threading;
+global using global::System.Threading.Tasks;
diff --git a/obj/Debug/net8.0/lab7.assets.cache b/obj/Debug/net8.0/lab7.assets.cache
new file mode 100644
index 0000000..81be827
Binary files /dev/null and b/obj/Debug/net8.0/lab7.assets.cache differ
diff --git a/obj/lab7.csproj.nuget.dgspec.json b/obj/lab7.csproj.nuget.dgspec.json
new file mode 100644
index 0000000..9e7b667
--- /dev/null
+++ b/obj/lab7.csproj.nuget.dgspec.json
@@ -0,0 +1,73 @@
+{
+ "format": 1,
+ "restore": {
+ "C:\\Users\\student\\Desktop\\lab7\\lab7\\lab7.csproj": {}
+ },
+ "projects": {
+ "C:\\Users\\student\\Desktop\\lab7\\lab7\\lab7.csproj": {
+ "version": "1.0.0",
+ "restore": {
+ "projectUniqueName": "C:\\Users\\student\\Desktop\\lab7\\lab7\\lab7.csproj",
+ "projectName": "lab7",
+ "projectPath": "C:\\Users\\student\\Desktop\\lab7\\lab7\\lab7.csproj",
+ "packagesPath": "C:\\Users\\student\\.nuget\\packages\\",
+ "outputPath": "C:\\Users\\student\\Desktop\\lab7\\lab7\\obj\\",
+ "projectStyle": "PackageReference",
+ "fallbackFolders": [
+ "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
+ ],
+ "configFilePaths": [
+ "C:\\Users\\student\\AppData\\Roaming\\NuGet\\NuGet.Config",
+ "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
+ "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
+ ],
+ "originalTargetFrameworks": [
+ "net8.0"
+ ],
+ "sources": {
+ "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
+ "https://api.nuget.org/v3/index.json": {}
+ },
+ "frameworks": {
+ "net8.0": {
+ "targetAlias": "net8.0",
+ "projectReferences": {}
+ }
+ },
+ "warningProperties": {
+ "warnAsError": [
+ "NU1605"
+ ]
+ },
+ "restoreAuditProperties": {
+ "enableAudit": "true",
+ "auditLevel": "low",
+ "auditMode": "direct"
+ },
+ "SdkAnalysisLevel": "9.0.300"
+ },
+ "frameworks": {
+ "net8.0": {
+ "targetAlias": "net8.0",
+ "imports": [
+ "net461",
+ "net462",
+ "net47",
+ "net471",
+ "net472",
+ "net48",
+ "net481"
+ ],
+ "assetTargetFallback": true,
+ "warn": true,
+ "frameworkReferences": {
+ "Microsoft.NETCore.App": {
+ "privateAssets": "all"
+ }
+ },
+ "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.304/PortableRuntimeIdentifierGraph.json"
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/obj/lab7.csproj.nuget.g.props b/obj/lab7.csproj.nuget.g.props
new file mode 100644
index 0000000..648dc02
--- /dev/null
+++ b/obj/lab7.csproj.nuget.g.props
@@ -0,0 +1,16 @@
+
+
+
+ True
+ NuGet
+ $(MSBuildThisFileDirectory)project.assets.json
+ $(UserProfile)\.nuget\packages\
+ C:\Users\student\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages
+ PackageReference
+ 6.14.0
+
+
+
+
+
+
\ No newline at end of file
diff --git a/obj/lab7.csproj.nuget.g.targets b/obj/lab7.csproj.nuget.g.targets
new file mode 100644
index 0000000..3dc06ef
--- /dev/null
+++ b/obj/lab7.csproj.nuget.g.targets
@@ -0,0 +1,2 @@
+
+
\ No newline at end of file
diff --git a/obj/project.assets.json b/obj/project.assets.json
new file mode 100644
index 0000000..426c837
--- /dev/null
+++ b/obj/project.assets.json
@@ -0,0 +1,79 @@
+{
+ "version": 3,
+ "targets": {
+ "net8.0": {}
+ },
+ "libraries": {},
+ "projectFileDependencyGroups": {
+ "net8.0": []
+ },
+ "packageFolders": {
+ "C:\\Users\\student\\.nuget\\packages\\": {},
+ "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
+ },
+ "project": {
+ "version": "1.0.0",
+ "restore": {
+ "projectUniqueName": "C:\\Users\\student\\Desktop\\lab7\\lab7\\lab7.csproj",
+ "projectName": "lab7",
+ "projectPath": "C:\\Users\\student\\Desktop\\lab7\\lab7\\lab7.csproj",
+ "packagesPath": "C:\\Users\\student\\.nuget\\packages\\",
+ "outputPath": "C:\\Users\\student\\Desktop\\lab7\\lab7\\obj\\",
+ "projectStyle": "PackageReference",
+ "fallbackFolders": [
+ "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
+ ],
+ "configFilePaths": [
+ "C:\\Users\\student\\AppData\\Roaming\\NuGet\\NuGet.Config",
+ "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
+ "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
+ ],
+ "originalTargetFrameworks": [
+ "net8.0"
+ ],
+ "sources": {
+ "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
+ "https://api.nuget.org/v3/index.json": {}
+ },
+ "frameworks": {
+ "net8.0": {
+ "targetAlias": "net8.0",
+ "projectReferences": {}
+ }
+ },
+ "warningProperties": {
+ "warnAsError": [
+ "NU1605"
+ ]
+ },
+ "restoreAuditProperties": {
+ "enableAudit": "true",
+ "auditLevel": "low",
+ "auditMode": "direct"
+ },
+ "SdkAnalysisLevel": "9.0.300"
+ },
+ "frameworks": {
+ "net8.0": {
+ "targetAlias": "net8.0",
+ "imports": [
+ "net461",
+ "net462",
+ "net47",
+ "net471",
+ "net472",
+ "net48",
+ "net481"
+ ],
+ "assetTargetFallback": true,
+ "warn": true,
+ "frameworkReferences": {
+ "Microsoft.NETCore.App": {
+ "privateAssets": "all"
+ }
+ },
+ "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.304/PortableRuntimeIdentifierGraph.json"
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/obj/project.nuget.cache b/obj/project.nuget.cache
new file mode 100644
index 0000000..bbcf81e
--- /dev/null
+++ b/obj/project.nuget.cache
@@ -0,0 +1,8 @@
+{
+ "version": 2,
+ "dgSpecHash": "gebdpvlIHFk=",
+ "success": true,
+ "projectFilePath": "C:\\Users\\student\\Desktop\\lab7\\lab7\\lab7.csproj",
+ "expectedPackageFiles": [],
+ "logs": []
+}
\ No newline at end of file