Tool: Visual Studio, Visual Studio Code, PSScriptPad, PowerShell Module
Version:
Creating package project.
Failed to find the developer pack for .NET Version net472. Your build might fail. You can install the Developer Pack from Microsoft: .NET SDKs downloads for Visual Studio
Using .NET Framework version: net472
Error while import module: System.IO.FileNotFoundException: The specified module ‘Webadministration’ was not loaded because no valid module file was found in any module directory.
…
Build FAILED.
CSC : error CS5001: Program does not contain a static ‘Main’ method suitable for an entry point [C:\Code\repos\CloudMngr\bin\Release\bin\709cffe8fc614ebaa365c3fa10255536****AttuneMngr.csproj]
0 Warning(s)
1 Error(s)
I have reinstalled and repaired all the dot net components. But I still get:
Creating package project.
Failed to find the developer pack for .NET Version net471. Your build might fail. You can install the Developer Pack from Microsoft: .NET SDKs downloads for Visual Studio
Using .NET Framework version: net471
Determining projects to restore…
Restored C:\Code\repos\CloudMngr\bin\Release\bin\b128420adef340f1bf7f5c913d215b99\AttuneMngr.csproj (in 102 ms).
Determining projects to restore...
Restored C:\Code\repos\CloudMngr\bin\Release\bin\b128420adef340f1bf7f5c913d215b99\AttuneMngr.csproj (in 102 ms).
Packaging C:\Users\TFE\AppData\Local\Temp\AttuneMngr.ps1 -> C:\Code\repos\CloudMngr\bin\Release\AttuneMngr.exe
MSBuild version 17.6.8+c70978d4d for .NET
Determining projects to restore…
All projects are up-to-date for restore.
CSC : error CS5001: Program does not contain a static ‘Main’ method suitable for an entry point [C:\Code\repos\CloudMngr\bin\Release\bin\b128420adef340f1bf7f5c913d215b99\AttuneMngr.csproj]
Build FAILED.
CSC : error CS5001: Program does not contain a static ‘Main’ method suitable for an entry point [C:\Code\repos\CloudMngr\bin\Release\bin\b128420adef340f1bf7f5c913d215b99\AttuneMngr.csproj]
0 Warning(s)
1 Error(s)
Thank you. It looks to have run through and built the exe. It got immediately quarantined and I still see:
Creating package project.
Failed to find the developer pack for .NET Version net472. Your build might fail. You can install the Developer Pack from Microsoft: .NET SDKs downloads for Visual Studio
Here is the rest…
Creating package project.
Failed to find the developer pack for .NET Version net472. Your build might fail. You can install the Developer Pack from Microsoft: .NET SDKs downloads for Visual Studio
Using .NET Framework version: net472
Determining projects to restore…
Restored C:\Code\repos\CloudMngr\bin\Release\bin\d22e315a86374236866fce3dc407451d\AttuneMngr.csproj (in 94 ms).
Determining projects to restore...
Restored C:\Code\repos\CloudMngr\bin\Release\bin\d22e315a86374236866fce3dc407451d\AttuneMngr.csproj (in 94 ms).
Packaging C:\Users\TFE\AppData\Local\Temp\AttuneMngr.ps1 -> C:\Code\repos\CloudMngr\bin\Release\AttuneMngr.exe
MSBuild version 17.6.8+c70978d4d for .NET
Determining projects to restore…
All projects are up-to-date for restore.
AttuneMngr → C:\Code\repos\CloudMngr\bin\Release\bin\d22e315a86374236866fce3dc407451d\out\AttuneMngr.exe
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:01.13
MSBuild version 17.6.8+c70978d4d for .NET
Determining projects to restore…
All projects are up-to-date for restore.
AttuneMngr → C:\Code\repos\CloudMngr\bin\Release\bin\d22e315a86374236866fce3dc407451d\out\AttuneMngr.exe