Unable to Scan a .vbproj WebApp with SonarScanner and MSBuild.exe

Hi everyone,
We are trying to analyze a WebApp written in JS and Visual Basic, we didn’t have any problem scanning the JS code, we successfully did it and are happy with the result; instead we are having problems scanning the Visual Basic code.

Deployment Versions:

  • SonarQube 9.4.0.54424
  • SonarScanner for .NET Framework 5.11
  • .NET Framework 4.7.2 (version required to build WebApp)
  • MSBuild.exe from VS Code Build Tools

Deployment Collocation:

  • Our SonarQube is deployed in a CentOS virtual machine
  • The SonarScanner is installed in my PC and is pointing to the SonarQube

I want to point out that I already tested that I successfully installed every component and added all the install directories to the PATH Environment Variable (dotnet, SonarScanner.MSBuild.exe, MSBuild.exe)

The app is structured in different folders, each one for a different purpose, each of these directories contain VB code and additional components (xml, dll, txts…).
So to make it easier, I’ll pase the structure of one of those directories:

├───.sonarqube 
│   ├───bin
│   │   └───targets
│   ├───conf
│   │   ├───0
│   │   ├───1
│   │   ├───cs
│   │   └───vbnet
│   └───out
│       ├───0
│       │   └───output-vbnet
│       └───1
│           └───output-vbnet
├───bin
│   ├───Debug
│   └───Release
├───Domain
│   └───Report
├───My Project
├───obj
│   ├───Debug
│   │   └───TempPE
│   └───Release
│       └───TempPE
└───Persistence

First im starting the SonarScanner utility with the following command, as advised from the webconsole:

SonarScanner.MSBuild.exe begin /k:"[project_name]" /d:sonar.host.url="[sonarqube_ip:9000]" /d:sonar.login="[API_KEY]"

And I’m getting a positive output:

SonarScanner for MSBuild 5.11
Using the .NET Framework version of the Scanner for MSBuild
Pre-processing started.
Preparing working directories...
17:08:10.856  Updating build integration targets...
17:08:11.659  Fetching analysis configuration settings...
17:08:12.616  Provisioning analyzer assemblies for cs...
17:08:12.618  Installing required Roslyn analyzers...
17:08:13.202  Provisioning analyzer assemblies for vbnet...
17:08:13.203  Installing required Roslyn analyzers...
17:08:13.248  Pre-processing succeeded.

After that I’m proceeding with building the code:

MsBuild.exe /t:build

The Output is what is actually getting me stuck:

MSBuild version 17.4.1+9a89d02ff for .NET Framework
Build started 2/21/2023 5:38:12 PM.
Project "C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj" on node 1 (Rebuild target(s)).
CoreClean:
  Deleting file "C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\obj\Debug\Coopera.HLT.vbproj.AssemblyReference.cache".
  Deleting file "C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\obj\Debug\Coopera.HLT.Resources.resources".
  Deleting file "C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\obj\Debug\Coopera.HLT.vbproj.GenerateResource.cache".
  Deleting file "C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\obj\Debug\Coopera.HLT.vbproj.CoreCompileInputs.cache".
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2116,5): warning : The referenced project '..\..\Framework\Coopera.Content\Coopera.Content.Reporting\Coopera.Content.Reporting.vbproj' does not exist. [C:\U
sers\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2116,5): warning : The referenced project '..\..\Framework\Coopera.Core\Coopera.Core\Coopera.Core.vbproj' does not exist. [C:\Users\De.Romeo\Desktop\Service
s\Coopera.HLT\Coopera.HLT.vbproj]
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2116,5): warning : The referenced project '..\..\Framework\Coopera.IO\Coopera.IO\Coopera.IO.vbproj' does not exist. [C:\Users\De.Romeo\Desktop\Services\Coop
era.HLT\Coopera.HLT.vbproj]
CoreResGen:
  Processing resource file "My Project\Resources.resx" into "obj\Debug\Coopera.HLT.Resources.resources".
GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
SonarCategoriseProject:
  Sonar: (Coopera.HLT.vbproj) Categorizing project as test or product code...
  Sonar: (Coopera.HLT.vbproj) categorized as MAIN project (production code).
SonarCreateProjectSpecificDirs:
  Creating directory "C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\.sonarqube\conf\2".
SonarWriteFilesToAnalyze:
  Sonar: (Coopera.HLT.vbproj) Number of files to analyse: 73. The list of files to be analyzed is in C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\.sonarqube\conf\2\FilesToAnalyze.txt.
SetRoslynCodeAnalysisProperties:
  Sonar: (Coopera.HLT.vbproj) Analysis configured successfully with C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\.sonarqube\conf\2\SonarProjectConfig.xml.
SonarQubeImportBeforeInfo:
  Sonar: (Coopera.HLT) SonarQube.Integration.ImportBefore.targets was loaded
CoreCompile:
  C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\Roslyn\vbc.exe /noconfig /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Generic,System.Data,System.Diagnostics,System.Linq,System.Xml.Linq,System.Threading.Tasks /op
  tioncompare:Binary /optionexplicit+ /optionstrict+ /optioninfer+ /nostdlib /rootnamespace:Coopera.HLT /sdkpath:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2" /highentropyva+ /doc:obj\Debug\Coopera.HLT.xml /define:"CONFIG=\"Debug\",DEBUG=
  -1,TRACE=-1,_MyType=\"Windows\",PLATFORM=\"AnyCPU\"" /reference:C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\bin\Debug\Newtonsoft.Json.dll,C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\bin\Debug\NPoco.dll,"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NET
  Framework\v4.7.2\System.Core.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Data.DataSetExtensions.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Data.dll","C:\Program Files (
  x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Net.Http.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\Syste
  m.Runtime.Serialization.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Transactions.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Web.dll","C:\Program Files (x86)\Reference A
  ssemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Xml.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Xml.Linq.dll" /debug+ /debug:full /filealign:512 /out:obj\Debug\Coopera.HLT.dll /ruleset:C:\Users\De.Romeo\Desktop\Se
  rvices\COOPERA.HLT\.sonarqube\conf\Sonar-vbnet.ruleset /errorlog:C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\.sonarqube\out\2\Issues.json /subsystemversion:6.00 /resource:obj\Debug\Coopera.HLT.Resources.resources /target:library /warnaserror- /utf8output /deterministic+ /an
  alyzer:C:\Users\De.Romeo\AppData\Local\Temp\.sonarqube\resources\0\Google.Protobuf.dll /analyzer:C:\Users\De.Romeo\AppData\Local\Temp\.sonarqube\resources\0\SonarAnalyzer.CFG.dll /analyzer:C:\Users\De.Romeo\AppData\Local\Temp\.sonarqube\resources\0\SonarAnalyzer.CSharp.dll /an
  alyzer:C:\Users\De.Romeo\AppData\Local\Temp\.sonarqube\resources\0\SonarAnalyzer.dll /analyzer:C:\Users\De.Romeo\AppData\Local\Temp\.sonarqube\resources\1\Google.Protobuf.dll /analyzer:C:\Users\De.Romeo\AppData\Local\Temp\.sonarqube\resources\1\SonarAnalyzer.CFG.dll /analyzer:
  C:\Users\De.Romeo\AppData\Local\Temp\.sonarqube\resources\1\SonarAnalyzer.dll /analyzer:C:\Users\De.Romeo\AppData\Local\Temp\.sonarqube\resources\1\SonarAnalyzer.VisualBasic.dll /additionalfile:C:\Users\De.Romeo\Desktop\Services\COOPERA.HLT\.sonarqube\conf\vbnet\SonarLint.xml
  /additionalfile:C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\.sonarqube\conf\2\SonarProjectConfig.xml /additionalfile:C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\.sonarqube\conf\2\ProjectOutFolderPath.txt Domain\CounselingCenterSchedule.vb Domain\Group.vb Domain\HealthWor
  kerXCounselingCenter.vb Domain\ICD9.vb Domain\TreatmentResult.vb Domain\InvestigationResult.vb Domain\MedicalTreatmentItem.vb Domain\MedicalInvestigationItem.vb Domain\Report\Booking.vb Domain\Report\GenericReport.vb Domain\Report\UnderAge.vb Domain\Report\UnderAgeCourt.vb Dom
  ain\Report\AdultUrgent.vb Domain\Report\Adult7days.vb Domain\StatItem.vb Domain\District.vb Domain\SurveyAdolescenti.vb Domain\SurveyCanOperatori.vb Domain\SurveyGradimento.vb Domain\SurveyInizioCanPartecipanti.vb Domain\SurveyPostPartumCanOperatori.vb Domain\SurveyPostPartumC
  anPartecipanti.vb Domain\WaitingRoomIndicators.vb Domain\Doctor.vb Domain\Operator.vb Domain\OperatorDetail.vb Domain\DoctorDetail.vb Domain\MedicalPathLink.vb Domain\MedicalPathDefinitionAttachedFile.vb Domain\MedicalHistoryTypeXMedicalPathDefinition.vb Domain\MedicalRecordUr
  i.vb Domain\MedicalTreatment.vb Domain\MedicalEvent.vb Domain\MedicalInvestigation.vb Domain\MedicalHistory.vb Domain\MedicalHistoryType.vb Domain\MedicalRecord.vb Domain\Area.vb Domain\PatientToken.vb Domain\HealthServiceTypeXArea.vb Domain\DoctorSchedule.vb Domain\Slot.vb Do
  main\Period.vb Domain\Enums.vb Domain\MedicalPath.vb Domain\MaritalStatus.vb Domain\Language.vb Domain\EducationLevel.vb Domain\Asl.vb Domain\Patient.vb Domain\Contact.vb Domain\PagedResults.vb Domain\MedicalCounseling.vb Domain\DoctorXArea.vb Domain\HealthServiceTypeXCounseli
  ngCenter.vb Domain\MedicalPathDefinitionXCounselingCenter.vb Domain\HealthServiceType.vb Domain\HealthServiceTypeXMedicalPathDefinition.vb Domain\CounselingCenter.vb Domain\HealthWorker.vb Domain\MedicalPathDefinition.vb Manager.vb "My Project\AssemblyInfo.vb" "My Project\Appl
  ication.Designer.vb" "My Project\Resources.Designer.vb" "My Project\Settings.Designer.vb" Persistence\HLTRepository.vb Persistence\IHLTSession.vb Domain\SurveyCanFineOperatori.vb Domain\SurveyFineCanPartecipanti.vb Utilities.vb "obj\Debug\.NETFramework,Version=v4.7.2.AssemblyA
  ttributes.vb"
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(5,9): warning BC40056: Namespace or type specified in the Imports 'Coopera.IO' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member.
Make sure the imported element name doesn't use any aliases. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(6,9): warning BC40056: Namespace or type specified in the Imports 'Coopera.Persistence' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public
 member. Make sure the imported element name doesn't use any aliases. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(7,9): warning BC40056: Namespace or type specified in the Imports 'Coopera.Content.Reporting' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one
public member. Make sure the imported element name doesn't use any aliases. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(17,32): error BC30002: Type 'IFileRepository' is not defined. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(28,105): error BC30002: Type 'IFileRepository' is not defined. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11523,116): error BC30002: Type 'Coopera.File' is not defined. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11587,133): error BC30002: Type 'Coopera.File' is not defined. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11661,120): error BC30002: Type 'Coopera.File' is not defined. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11732,121): error BC30002: Type 'Coopera.File' is not defined. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11805,118): error BC30002: Type 'Coopera.File' is not defined. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11890,123): error BC30002: Type 'Coopera.File' is not defined. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(14,16): error BC30002: Type 'IManager' is not defined. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(12007,37): error BC31035: Interface 'IDisposable' is not implemented by this class. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Persistence\HLTRepository.vb(1,9): warning BC40056: Namespace or type specified in the Imports 'Coopera.Persistence' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains a
t least one public member. Make sure the imported element name doesn't use any aliases. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Persistence\HLTRepository.vb(5,18): error BC30002: Type 'BaseRepository' is not defined. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  CompilerServer: server - server processed compilation - de6aeb1e-b108-4aff-a55b-7f091f662d06
Done Building Project "C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj" (Rebuild target(s)) -- FAILED.


Build FAILED.

"C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj" (Rebuild target) (1) ->
(ResolveProjectReferences target) ->
  C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2116,5): warning : The referenced project '..\..\Framework\Coopera.Content\Coopera.Content.Reporting\Coopera.Content.Reporting.vbproj' does not exist. [C:
\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]


"C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj" (Rebuild target) (1) ->
  C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2116,5): warning : The referenced project '..\..\Framework\Coopera.Core\Coopera.Core\Coopera.Core.vbproj' does not exist. [C:\Users\De.Romeo\Desktop\Servi
ces\Coopera.HLT\Coopera.HLT.vbproj]


"C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj" (Rebuild target) (1) ->
  C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2116,5): warning : The referenced project '..\..\Framework\Coopera.IO\Coopera.IO\Coopera.IO.vbproj' does not exist. [C:\Users\De.Romeo\Desktop\Services\Co
opera.HLT\Coopera.HLT.vbproj]


"C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj" (Rebuild target) (1) ->
(CoreCompile target) ->
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(5,9): warning BC40056: Namespace or type specified in the Imports 'Coopera.IO' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member
. Make sure the imported element name doesn't use any aliases. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(6,9): warning BC40056: Namespace or type specified in the Imports 'Coopera.Persistence' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one publ
ic member. Make sure the imported element name doesn't use any aliases. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(7,9): warning BC40056: Namespace or type specified in the Imports 'Coopera.Content.Reporting' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least on
e public member. Make sure the imported element name doesn't use any aliases. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Persistence\HLTRepository.vb(1,9): warning BC40056: Namespace or type specified in the Imports 'Coopera.Persistence' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains
 at least one public member. Make sure the imported element name doesn't use any aliases. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]


"C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj" (Rebuild target) (1) ->
(CoreCompile target) ->
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(17,32): error BC30002: Type 'IFileRepository' is not defined. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(28,105): error BC30002: Type 'IFileRepository' is not defined. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11523,116): error BC30002: Type 'Coopera.File' is not defined. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11587,133): error BC30002: Type 'Coopera.File' is not defined. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11661,120): error BC30002: Type 'Coopera.File' is not defined. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11732,121): error BC30002: Type 'Coopera.File' is not defined. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11805,118): error BC30002: Type 'Coopera.File' is not defined. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11890,123): error BC30002: Type 'Coopera.File' is not defined. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(14,16): error BC30002: Type 'IManager' is not defined. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(12007,37): error BC31035: Interface 'IDisposable' is not implemented by this class. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Persistence\HLTRepository.vb(5,18): error BC30002: Type 'BaseRepository' is not defined. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]

    7 Warning(s)
    11 Error(s)

I already:

  • checked that in the “Coopera.HLT.vbproj” all the files that are giving errors are correctly included
  • tried to rebuild and to delete, re-do the process

Any advices?
Many thanks in advance :slight_smile:

Hi,

Does the build fail if you don’t execute the begin step?

Also, I notice this:

I see evidence of a clean earlier in the log, but this indicates that not everything is being built. A full rebuild is required for correct analysis.

 
Ann

Hi,
Thanks for the feedback.

I deleted the .sonarqube folder inside the directory, so to have a clean target.
This time I didnt execute the begin command but only the MSBuild.exe /t:Build and the output is still returning errors:

MSBuild version 17.4.1+9a89d02ff for .NET Framework
Build started 2/23/2023 9:27:07 AM.
Project "C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj" on node 1 (Build target(s)).
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(211
6,5): warning : The referenced project '..\..\Framework\Coopera.Content\Coopera.Content.Reporting\Coopera.Content.Reporting.vb
proj' does not exist. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(211
6,5): warning : The referenced project '..\..\Framework\Coopera.Core\Coopera.Core\Coopera.Core.vbproj' does not exist. [C:\Use
rs\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(211
6,5): warning : The referenced project '..\..\Framework\Coopera.IO\Coopera.IO\Coopera.IO.vbproj' does not exist. [C:\Users\De.
Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
CoreResGen:
  No resources are out of date with respect to their source files. Skipping resource generation.
GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input fi
les.
CoreCompile:
  C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\Roslyn\vbc.exe /noconfig /imports:Microso
  ft.VisualBasic,System,System.Collections,System.Collections.Generic,System.Data,System.Diagnostics,System.Linq,System.Xml.Li
  nq,System.Threading.Tasks /optioncompare:Binary /optionexplicit+ /optionstrict+ /optioninfer+ /nostdlib /rootnamespace:Coope
  ra.HLT /sdkpath:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2" /highentropyva+ /doc:
  obj\Debug\Coopera.HLT.xml /define:"CONFIG=\"Debug\",DEBUG=-1,TRACE=-1,_MyType=\"Windows\",PLATFORM=\"AnyCPU\"" /reference:C:
  \Users\De.Romeo\Desktop\Services\Coopera.HLT\bin\Debug\Newtonsoft.Json.dll,C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\bi
  n\Debug\NPoco.dll,"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Core.dll","C:
  \Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Data.DataSetExtensions.dll","C:\Pr
  ogram Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Data.dll","C:\Program Files (x86)\Ref
  erence Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.dll","C:\Program Files (x86)\Reference Assemblies\Microsof
  t\Framework\.NETFramework\v4.7.2\System.Net.Http.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETF
  ramework\v4.7.2\System.Runtime.Serialization.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFrame
  work\v4.7.2\System.Transactions.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\S
  ystem.Web.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Xml.dll","C:\Pro
  gram Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Xml.Linq.dll" /debug+ /debug:full /fil
  ealign:512 /out:obj\Debug\Coopera.HLT.dll /subsystemversion:6.00 /resource:obj\Debug\Coopera.HLT.Resources.resources /target
  :library /utf8output /deterministic+ Domain\CounselingCenterSchedule.vb Domain\Group.vb Domain\HealthWorkerXCounselingCenter
  .vb Domain\ICD9.vb Domain\TreatmentResult.vb Domain\InvestigationResult.vb Domain\MedicalTreatmentItem.vb Domain\MedicalInve
  stigationItem.vb Domain\Report\Booking.vb Domain\Report\GenericReport.vb Domain\Report\UnderAge.vb Domain\Report\UnderAgeCou
  rt.vb Domain\Report\AdultUrgent.vb Domain\Report\Adult7days.vb Domain\StatItem.vb Domain\District.vb Domain\SurveyAdolescent
  i.vb Domain\SurveyCanOperatori.vb Domain\SurveyGradimento.vb Domain\SurveyInizioCanPartecipanti.vb Domain\SurveyPostPartumCa
  nOperatori.vb Domain\SurveyPostPartumCanPartecipanti.vb Domain\WaitingRoomIndicators.vb Domain\Doctor.vb Domain\Operator.vb
  Domain\OperatorDetail.vb Domain\DoctorDetail.vb Domain\MedicalPathLink.vb Domain\MedicalPathDefinitionAttachedFile.vb Domain
  \MedicalHistoryTypeXMedicalPathDefinition.vb Domain\MedicalRecordUri.vb Domain\MedicalTreatment.vb Domain\MedicalEvent.vb Do
  main\MedicalInvestigation.vb Domain\MedicalHistory.vb Domain\MedicalHistoryType.vb Domain\MedicalRecord.vb Domain\Area.vb Do
  main\PatientToken.vb Domain\HealthServiceTypeXArea.vb Domain\DoctorSchedule.vb Domain\Slot.vb Domain\Period.vb Domain\Enums.
  vb Domain\MedicalPath.vb Domain\MaritalStatus.vb Domain\Language.vb Domain\EducationLevel.vb Domain\Asl.vb Domain\Patient.vb
   Domain\Contact.vb Domain\PagedResults.vb Domain\MedicalCounseling.vb Domain\DoctorXArea.vb Domain\HealthServiceTypeXCounsel
  ingCenter.vb Domain\MedicalPathDefinitionXCounselingCenter.vb Domain\HealthServiceType.vb Domain\HealthServiceTypeXMedicalPa
  thDefinition.vb Domain\CounselingCenter.vb Domain\HealthWorker.vb Domain\MedicalPathDefinition.vb Manager.vb "My Project\Ass
  emblyInfo.vb" "My Project\Application.Designer.vb" "My Project\Resources.Designer.vb" "My Project\Settings.Designer.vb" Pers
  istence\HLTRepository.vb Persistence\IHLTSession.vb Domain\SurveyCanFineOperatori.vb Domain\SurveyFineCanPartecipanti.vb Uti
  lities.vb "obj\Debug\.NETFramework,Version=v4.7.2.AssemblyAttributes.vb" /warnaserror+:41999,42016,42017,42018,42019,42020,4
  2021,42022,42032,42036
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(5,9): warning BC40056: Namespace or type specified in the Imports 'C
oopera.IO' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains a
t least one public member. Make sure the imported element name doesn't use any aliases. [C:\Users\De.Romeo\Desktop\Services\Co
opera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(6,9): warning BC40056: Namespace or type specified in the Imports 'C
oopera.Persistence' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and c
ontains at least one public member. Make sure the imported element name doesn't use any aliases. [C:\Users\De.Romeo\Desktop\Se
rvices\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(7,9): warning BC40056: Namespace or type specified in the Imports 'C
oopera.Content.Reporting' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined
 and contains at least one public member. Make sure the imported element name doesn't use any aliases. [C:\Users\De.Romeo\Desk
top\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(17,32): error BC30002: Type 'IFileRepository' is not defined. [C:\Us
ers\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(28,105): error BC30002: Type 'IFileRepository' is not defined. [C:\U
sers\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11523,116): error BC30002: Type 'Coopera.File' is not defined. [C:\U
sers\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11587,133): error BC30002: Type 'Coopera.File' is not defined. [C:\U
sers\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11661,120): error BC30002: Type 'Coopera.File' is not defined. [C:\U
sers\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11732,121): error BC30002: Type 'Coopera.File' is not defined. [C:\U
sers\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11805,118): error BC30002: Type 'Coopera.File' is not defined. [C:\U
sers\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11890,123): error BC30002: Type 'Coopera.File' is not defined. [C:\U
sers\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(14,16): error BC30002: Type 'IManager' is not defined. [C:\Users\De.
Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(12007,37): error BC31035: Interface 'IDisposable' is not implemented
 by this class. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Persistence\HLTRepository.vb(1,9): warning BC40056: Namespace or type specified
 in the Imports 'Coopera.Persistence' doesn't contain any public member or cannot be found. Make sure the namespace or the typ
e is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. [C:\Users\D
e.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Persistence\HLTRepository.vb(5,18): error BC30002: Type 'BaseRepository' is not
 defined. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  CompilerServer: server - server processed compilation - 90f1e1a0-0e48-4682-92d8-240e3c88a9ae
Done Building Project "C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj" (Build target(s)) -- FAILED.


Build FAILED.

"C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj" (Build target) (1) ->
(ResolveProjectReferences target) ->
  C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2
116,5): warning : The referenced project '..\..\Framework\Coopera.Content\Coopera.Content.Reporting\Coopera.Content.Reporting.
vbproj' does not exist. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]


"C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj" (Build target) (1) ->
  C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2
116,5): warning : The referenced project '..\..\Framework\Coopera.Core\Coopera.Core\Coopera.Core.vbproj' does not exist. [C:\U
sers\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]


"C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj" (Build target) (1) ->
  C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2
116,5): warning : The referenced project '..\..\Framework\Coopera.IO\Coopera.IO\Coopera.IO.vbproj' does not exist. [C:\Users\D
e.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]


"C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj" (Build target) (1) ->
(CoreCompile target) ->
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(5,9): warning BC40056: Namespace or type specified in the Imports
'Coopera.IO' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains
 at least one public member. Make sure the imported element name doesn't use any aliases. [C:\Users\De.Romeo\Desktop\Services\
Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(6,9): warning BC40056: Namespace or type specified in the Imports
'Coopera.Persistence' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and
 contains at least one public member. Make sure the imported element name doesn't use any aliases. [C:\Users\De.Romeo\Desktop\
Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(7,9): warning BC40056: Namespace or type specified in the Imports
'Coopera.Content.Reporting' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defin
ed and contains at least one public member. Make sure the imported element name doesn't use any aliases. [C:\Users\De.Romeo\De
sktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Persistence\HLTRepository.vb(1,9): warning BC40056: Namespace or type specifi
ed in the Imports 'Coopera.Persistence' doesn't contain any public member or cannot be found. Make sure the namespace or the t
ype is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. [C:\Users
\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]


"C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj" (Build target) (1) ->
(CoreCompile target) ->
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(17,32): error BC30002: Type 'IFileRepository' is not defined. [C:\
Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(28,105): error BC30002: Type 'IFileRepository' is not defined. [C:
\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11523,116): error BC30002: Type 'Coopera.File' is not defined. [C:
\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11587,133): error BC30002: Type 'Coopera.File' is not defined. [C:
\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11661,120): error BC30002: Type 'Coopera.File' is not defined. [C:
\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11732,121): error BC30002: Type 'Coopera.File' is not defined. [C:
\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11805,118): error BC30002: Type 'Coopera.File' is not defined. [C:
\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11890,123): error BC30002: Type 'Coopera.File' is not defined. [C:
\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(14,16): error BC30002: Type 'IManager' is not defined. [C:\Users\D
e.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(12007,37): error BC31035: Interface 'IDisposable' is not implement
ed by this class. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Persistence\HLTRepository.vb(5,18): error BC30002: Type 'BaseRepository' is n
ot defined. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]

    7 Warning(s)
    11 Error(s)

Time Elapsed 00:00:00.50

I don’t know if I’m interpreting this correcly, but if I try to run MSBuild.exe /t:Rebuild I still get the same errors

MSBuild version 17.4.1+9a89d02ff for .NET Framework
Build started 2/23/2023 9:29:37 AM.
Project "C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj" on node 1 (rebuild target(s)).
CoreClean:
  Deleting file "C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\obj\Debug\Coopera.HLT.vbproj.AssemblyReference.cache".
  Deleting file "C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\obj\Debug\Coopera.HLT.Resources.resources".
  Deleting file "C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\obj\Debug\Coopera.HLT.vbproj.GenerateResource.cache".
  Deleting file "C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\obj\Debug\Coopera.HLT.vbproj.CoreCompileInputs.cache".
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(211
6,5): warning : The referenced project '..\..\Framework\Coopera.Content\Coopera.Content.Reporting\Coopera.Content.Reporting.vb
proj' does not exist. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(211
6,5): warning : The referenced project '..\..\Framework\Coopera.Core\Coopera.Core\Coopera.Core.vbproj' does not exist. [C:\Use
rs\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(211
6,5): warning : The referenced project '..\..\Framework\Coopera.IO\Coopera.IO\Coopera.IO.vbproj' does not exist. [C:\Users\De.
Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
CoreResGen:
  Processing resource file "My Project\Resources.resx" into "obj\Debug\Coopera.HLT.Resources.resources".
GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input fi
les.
CoreCompile:
  C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\Roslyn\vbc.exe /noconfig /imports:Microso
  ft.VisualBasic,System,System.Collections,System.Collections.Generic,System.Data,System.Diagnostics,System.Linq,System.Xml.Li
  nq,System.Threading.Tasks /optioncompare:Binary /optionexplicit+ /optionstrict+ /optioninfer+ /nostdlib /rootnamespace:Coope
  ra.HLT /sdkpath:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2" /highentropyva+ /doc:
  obj\Debug\Coopera.HLT.xml /define:"CONFIG=\"Debug\",DEBUG=-1,TRACE=-1,_MyType=\"Windows\",PLATFORM=\"AnyCPU\"" /reference:C:
  \Users\De.Romeo\Desktop\Services\Coopera.HLT\bin\Debug\Newtonsoft.Json.dll,C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\bi
  n\Debug\NPoco.dll,"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Core.dll","C:
  \Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Data.DataSetExtensions.dll","C:\Pr
  ogram Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Data.dll","C:\Program Files (x86)\Ref
  erence Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.dll","C:\Program Files (x86)\Reference Assemblies\Microsof
  t\Framework\.NETFramework\v4.7.2\System.Net.Http.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETF
  ramework\v4.7.2\System.Runtime.Serialization.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFrame
  work\v4.7.2\System.Transactions.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\S
  ystem.Web.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Xml.dll","C:\Pro
  gram Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Xml.Linq.dll" /debug+ /debug:full /fil
  ealign:512 /out:obj\Debug\Coopera.HLT.dll /subsystemversion:6.00 /resource:obj\Debug\Coopera.HLT.Resources.resources /target
  :library /utf8output /deterministic+ Domain\CounselingCenterSchedule.vb Domain\Group.vb Domain\HealthWorkerXCounselingCenter
  .vb Domain\ICD9.vb Domain\TreatmentResult.vb Domain\InvestigationResult.vb Domain\MedicalTreatmentItem.vb Domain\MedicalInve
  stigationItem.vb Domain\Report\Booking.vb Domain\Report\GenericReport.vb Domain\Report\UnderAge.vb Domain\Report\UnderAgeCou
  rt.vb Domain\Report\AdultUrgent.vb Domain\Report\Adult7days.vb Domain\StatItem.vb Domain\District.vb Domain\SurveyAdolescent
  i.vb Domain\SurveyCanOperatori.vb Domain\SurveyGradimento.vb Domain\SurveyInizioCanPartecipanti.vb Domain\SurveyPostPartumCa
  nOperatori.vb Domain\SurveyPostPartumCanPartecipanti.vb Domain\WaitingRoomIndicators.vb Domain\Doctor.vb Domain\Operator.vb
  Domain\OperatorDetail.vb Domain\DoctorDetail.vb Domain\MedicalPathLink.vb Domain\MedicalPathDefinitionAttachedFile.vb Domain
  \MedicalHistoryTypeXMedicalPathDefinition.vb Domain\MedicalRecordUri.vb Domain\MedicalTreatment.vb Domain\MedicalEvent.vb Do
  main\MedicalInvestigation.vb Domain\MedicalHistory.vb Domain\MedicalHistoryType.vb Domain\MedicalRecord.vb Domain\Area.vb Do
  main\PatientToken.vb Domain\HealthServiceTypeXArea.vb Domain\DoctorSchedule.vb Domain\Slot.vb Domain\Period.vb Domain\Enums.
  vb Domain\MedicalPath.vb Domain\MaritalStatus.vb Domain\Language.vb Domain\EducationLevel.vb Domain\Asl.vb Domain\Patient.vb
   Domain\Contact.vb Domain\PagedResults.vb Domain\MedicalCounseling.vb Domain\DoctorXArea.vb Domain\HealthServiceTypeXCounsel
  ingCenter.vb Domain\MedicalPathDefinitionXCounselingCenter.vb Domain\HealthServiceType.vb Domain\HealthServiceTypeXMedicalPa
  thDefinition.vb Domain\CounselingCenter.vb Domain\HealthWorker.vb Domain\MedicalPathDefinition.vb Manager.vb "My Project\Ass
  emblyInfo.vb" "My Project\Application.Designer.vb" "My Project\Resources.Designer.vb" "My Project\Settings.Designer.vb" Pers
  istence\HLTRepository.vb Persistence\IHLTSession.vb Domain\SurveyCanFineOperatori.vb Domain\SurveyFineCanPartecipanti.vb Uti
  lities.vb "obj\Debug\.NETFramework,Version=v4.7.2.AssemblyAttributes.vb" /warnaserror+:41999,42016,42017,42018,42019,42020,4
  2021,42022,42032,42036
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(5,9): warning BC40056: Namespace or type specified in the Imports 'C
oopera.IO' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains a
t least one public member. Make sure the imported element name doesn't use any aliases. [C:\Users\De.Romeo\Desktop\Services\Co
opera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(6,9): warning BC40056: Namespace or type specified in the Imports 'C
oopera.Persistence' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and c
ontains at least one public member. Make sure the imported element name doesn't use any aliases. [C:\Users\De.Romeo\Desktop\Se
rvices\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(7,9): warning BC40056: Namespace or type specified in the Imports 'C
oopera.Content.Reporting' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined
 and contains at least one public member. Make sure the imported element name doesn't use any aliases. [C:\Users\De.Romeo\Desk
top\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(17,32): error BC30002: Type 'IFileRepository' is not defined. [C:\Us
ers\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(28,105): error BC30002: Type 'IFileRepository' is not defined. [C:\U
sers\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11523,116): error BC30002: Type 'Coopera.File' is not defined. [C:\U
sers\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11587,133): error BC30002: Type 'Coopera.File' is not defined. [C:\U
sers\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11661,120): error BC30002: Type 'Coopera.File' is not defined. [C:\U
sers\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11732,121): error BC30002: Type 'Coopera.File' is not defined. [C:\U
sers\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11805,118): error BC30002: Type 'Coopera.File' is not defined. [C:\U
sers\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11890,123): error BC30002: Type 'Coopera.File' is not defined. [C:\U
sers\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(14,16): error BC30002: Type 'IManager' is not defined. [C:\Users\De.
Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(12007,37): error BC31035: Interface 'IDisposable' is not implemented
 by this class. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Persistence\HLTRepository.vb(1,9): warning BC40056: Namespace or type specified
 in the Imports 'Coopera.Persistence' doesn't contain any public member or cannot be found. Make sure the namespace or the typ
e is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. [C:\Users\D
e.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Persistence\HLTRepository.vb(5,18): error BC30002: Type 'BaseRepository' is not
 defined. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  CompilerServer: server - server processed compilation - aedb65ca-6df3-430c-9706-9a45500bba35
Done Building Project "C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj" (rebuild target(s)) -- FAILED.


Build FAILED.

"C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj" (rebuild target) (1) ->
(ResolveProjectReferences target) ->
  C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2
116,5): warning : The referenced project '..\..\Framework\Coopera.Content\Coopera.Content.Reporting\Coopera.Content.Reporting.
vbproj' does not exist. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]


"C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj" (rebuild target) (1) ->
  C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2
116,5): warning : The referenced project '..\..\Framework\Coopera.Core\Coopera.Core\Coopera.Core.vbproj' does not exist. [C:\U
sers\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]


"C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj" (rebuild target) (1) ->
  C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2
116,5): warning : The referenced project '..\..\Framework\Coopera.IO\Coopera.IO\Coopera.IO.vbproj' does not exist. [C:\Users\D
e.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]


"C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj" (rebuild target) (1) ->
(CoreCompile target) ->
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(5,9): warning BC40056: Namespace or type specified in the Imports
'Coopera.IO' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains
 at least one public member. Make sure the imported element name doesn't use any aliases. [C:\Users\De.Romeo\Desktop\Services\
Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(6,9): warning BC40056: Namespace or type specified in the Imports
'Coopera.Persistence' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and
 contains at least one public member. Make sure the imported element name doesn't use any aliases. [C:\Users\De.Romeo\Desktop\
Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(7,9): warning BC40056: Namespace or type specified in the Imports
'Coopera.Content.Reporting' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defin
ed and contains at least one public member. Make sure the imported element name doesn't use any aliases. [C:\Users\De.Romeo\De
sktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Persistence\HLTRepository.vb(1,9): warning BC40056: Namespace or type specifi
ed in the Imports 'Coopera.Persistence' doesn't contain any public member or cannot be found. Make sure the namespace or the t
ype is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. [C:\Users
\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]


"C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj" (rebuild target) (1) ->
(CoreCompile target) ->
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(17,32): error BC30002: Type 'IFileRepository' is not defined. [C:\
Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(28,105): error BC30002: Type 'IFileRepository' is not defined. [C:
\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11523,116): error BC30002: Type 'Coopera.File' is not defined. [C:
\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11587,133): error BC30002: Type 'Coopera.File' is not defined. [C:
\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11661,120): error BC30002: Type 'Coopera.File' is not defined. [C:
\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11732,121): error BC30002: Type 'Coopera.File' is not defined. [C:
\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11805,118): error BC30002: Type 'Coopera.File' is not defined. [C:
\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(11890,123): error BC30002: Type 'Coopera.File' is not defined. [C:
\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(14,16): error BC30002: Type 'IManager' is not defined. [C:\Users\D
e.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Manager.vb(12007,37): error BC31035: Interface 'IDisposable' is not implement
ed by this class. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]
  C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Persistence\HLTRepository.vb(5,18): error BC30002: Type 'BaseRepository' is n
ot defined. [C:\Users\De.Romeo\Desktop\Services\Coopera.HLT\Coopera.HLT.vbproj]

    7 Warning(s)
    11 Error(s)

Time Elapsed 00:00:00.59

Many thanks for the feedback and if there is anything else you think I can try, feel free to let me know.

Hi,

If the build is failing without the begin step then the problem looks unrelated to analysis.

 
Ann