diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 32293b5..a044766 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -8,11 +8,21 @@ jobs: 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 + dotnet-version: '9.0.x' + + - run: dotnet restore + - run: dotnet build + + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-dotnet@v3 + with: + dotnet-version: '9.0.x' + + - name: trying to run + run: dotnet run diff --git a/.gitea/workflows/main.c b/.gitea/workflows/main.c deleted file mode 100644 index 775c1b4..0000000 --- a/.gitea/workflows/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/Program.cs b/Program.cs new file mode 100644 index 0000000..83fa4f4 --- /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..e8e1b5a --- /dev/null +++ b/lab7.csproj @@ -0,0 +1,10 @@ + + + + Exe + net9.0 + enable + enable + + + diff --git a/obj/lab7.csproj.nuget.dgspec.json b/obj/lab7.csproj.nuget.dgspec.json new file mode 100644 index 0000000..21de4cd --- /dev/null +++ b/obj/lab7.csproj.nuget.dgspec.json @@ -0,0 +1,67 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\komis\\Desktop\\semesrt7\\procesy\\lab7\\lab7.csproj": {} + }, + "projects": { + "C:\\Users\\komis\\Desktop\\semesrt7\\procesy\\lab7\\lab7.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\komis\\Desktop\\semesrt7\\procesy\\lab7\\lab7.csproj", + "projectName": "lab7", + "projectPath": "C:\\Users\\komis\\Desktop\\semesrt7\\procesy\\lab7\\lab7.csproj", + "packagesPath": "C:\\Users\\komis\\.nuget\\packages\\", + "outputPath": "C:\\Users\\komis\\Desktop\\semesrt7\\procesy\\lab7\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\komis\\AppData\\Roaming\\NuGet\\NuGet.Config" + ], + "originalTargetFrameworks": [ + "net9.0" + ], + "sources": { + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net9.0": { + "targetAlias": "net9.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "direct" + }, + "SdkAnalysisLevel": "9.0.300" + }, + "frameworks": { + "net9.0": { + "targetAlias": "net9.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.306/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..d6c8b27 --- /dev/null +++ b/obj/lab7.csproj.nuget.g.props @@ -0,0 +1,15 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\komis\.nuget\packages\ + 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..35a7576 --- /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..d621d67 --- /dev/null +++ b/obj/project.assets.json @@ -0,0 +1,72 @@ +{ + "version": 3, + "targets": { + "net9.0": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + "net9.0": [] + }, + "packageFolders": { + "C:\\Users\\komis\\.nuget\\packages\\": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\komis\\Desktop\\semesrt7\\procesy\\lab7\\lab7.csproj", + "projectName": "lab7", + "projectPath": "C:\\Users\\komis\\Desktop\\semesrt7\\procesy\\lab7\\lab7.csproj", + "packagesPath": "C:\\Users\\komis\\.nuget\\packages\\", + "outputPath": "C:\\Users\\komis\\Desktop\\semesrt7\\procesy\\lab7\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\komis\\AppData\\Roaming\\NuGet\\NuGet.Config" + ], + "originalTargetFrameworks": [ + "net9.0" + ], + "sources": { + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net9.0": { + "targetAlias": "net9.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "direct" + }, + "SdkAnalysisLevel": "9.0.300" + }, + "frameworks": { + "net9.0": { + "targetAlias": "net9.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.306/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..7d98093 --- /dev/null +++ b/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "YiwRoEQyrNA=", + "success": true, + "projectFilePath": "C:\\Users\\komis\\Desktop\\semesrt7\\procesy\\lab7\\lab7.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file