Skip to content

Commit

Permalink
SCAN4NET-126 ITs: Cleanup AssemblyAttribute project (#2235)
Browse files Browse the repository at this point in the history
  • Loading branch information
costin-zaharia-sonarsource authored Oct 18, 2024
1 parent 3aa7d56 commit f3b58af
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 111 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26228.9
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp2017", "ConsoleApp2017\ConsoleApp2017.csproj", "{65D38D80-1C32-43DA-9CB0-3EEF6DB221FF}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp", "ConsoleApp\ConsoleApp.csproj", "{65D38D80-1C32-43DA-9CB0-3EEF6DB221FF}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
10 changes: 10 additions & 0 deletions its/projects/AssemblyAttribute/ConsoleApp/ConsoleApp.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net48</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>disable</Nullable>
<LangVersion>default</LangVersion>
</PropertyGroup>

</Project>
9 changes: 9 additions & 0 deletions its/projects/AssemblyAttribute/ConsoleApp/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace ConsoleApp2017
{
class Program
{
static void Main()
{
}
}
}
6 changes: 0 additions & 6 deletions its/projects/AssemblyAttribute/ConsoleApp2017/App.config

This file was deleted.

This file was deleted.

15 changes: 0 additions & 15 deletions its/projects/AssemblyAttribute/ConsoleApp2017/Program.cs

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ void excludeAssemblyAttribute() throws Exception {
String token = TestUtils.getNewToken(ORCHESTRATOR);

ORCHESTRATOR.executeBuild(TestUtils.newScannerBegin(ORCHESTRATOR, localProjectKey, projectDir, token, ScannerClassifier.NET_FRAMEWORK));
TestUtils.runMSBuild(ORCHESTRATOR, projectDir, "/t:Rebuild");
TestUtils.runMSBuild(ORCHESTRATOR, projectDir, "/t:Restore,Rebuild");
BuildResult result = TestUtils.executeEndStepAndDumpResults(ORCHESTRATOR, projectDir, localProjectKey, token);

assertThat(result.getLogs()).doesNotContain("File is not under the project directory and cannot currently be analysed by SonarQube");
Expand Down

0 comments on commit f3b58af

Please sign in to comment.