Bot Framework Composer - failed - azure

I'm trying to build a chatbot and when I click on start bot I get an error.
Error occurred building the bot
It was not possible to find any compatible framework version The
framework 'Microsoft.AspNetCore.App', version '3.1.0' was not found. -
The following frameworks were found: 5.0.7 at [C:\Program
Files\dotnet\shared\Microsoft.AspNetCore.App] You can resolve the
problem by installing the specified framework and/or SDK. The
specified framework can be found at: -
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.AspNetCore.App&framework_version=3.1.0&arch=x64&rid=win10-x64
I have all of these installed:
How can I go about resolving this?

Just download the 3.1.o version also and it should work.

Related

ERROR-Cannot complete the install because one or more required items could not be found. Software being installed: Application Insights Pl

Cannot complete the install because one or more required items could not be found.
Software being installed: Application Insights Plugin for Java 3.31.0.202205311349 (com.microsoft.applicationinsights.feature.feature.group 3.31.0.202205311349)
Missing requirement: Azure Core Plugin Library 3.31.0.202205311349 (com.microsoft.azuretools.core 3.31.0.202205311349) requires 'osgi.bundle; org.eclipse.mylyn.commons.core 0.0.0' but it could not be found
Cannot satisfy dependency:
From: Application Insights Plugin for Java 3.31.0.202205311349 (com.microsoft.applicationinsights.feature.feature.group 3.31.0.202205311349)
To: org.eclipse.equinox.p2.iu; com.microsoft.applicationinsights.ui [3.31.0.202205311349,3.31.0.202205311349]
Cannot satisfy dependency:
From: Application Insights Plugin for Java 3.31.0.202205311349 (com.microsoft.applicationinsights.ui 3.31.0.202205311349)
To: osgi.bundle; com.microsoft.azuretools.core 3.31.0
installed latest eclipse.
jdk is pesent.
following-https://learn.microsoft.com/en-us/azure/developer/java/toolkit-for-eclipse/installation

Visual Studio 2022 and .net update issues for Azure Function App

I have been using Visual Studio 2019 for my Azure Function App. I recently updated to version 2022, I then uninstalled 2019.
I am getting the following errors now:
1>CodeaApi -> G:\AVR_Project\Codea App\Codea Azure Function App\bin\Debug\netcoreapp3.1\bin\CodeaApi.dll
1>C:\Users\asf\.nuget\packages\microsoft.net.sdk.functions\3.0.6\build\Microsoft.NET.Sdk.Functions.Build.targets(41,5): error : It was not possible to find any compatible framework version
1>C:\Users\asf\.nuget\packages\microsoft.net.sdk.functions\3.0.6\build\Microsoft.NET.Sdk.Functions.Build.targets(41,5): error : The framework 'Microsoft.NETCore.App', version '3.0.0' (x64) was not found.
1>C:\Users\asf\.nuget\packages\microsoft.net.sdk.functions\3.0.6\build\Microsoft.NET.Sdk.Functions.Build.targets(41,5): error : - The following frameworks were found:
1>C:\Users\asf\.nuget\packages\microsoft.net.sdk.functions\3.0.6\build\Microsoft.NET.Sdk.Functions.Build.targets(41,5): error : 6.0.1 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
1>C:\Users\asf\.nuget\packages\microsoft.net.sdk.functions\3.0.6\build\Microsoft.NET.Sdk.Functions.Build.targets(41,5): error :
1>C:\Users\asf\.nuget\packages\microsoft.net.sdk.functions\3.0.6\build\Microsoft.NET.Sdk.Functions.Build.targets(41,5): error : You can resolve the problem by installing the specified framework and/or SDK.
1>C:\Users\asf\.nuget\packages\microsoft.net.sdk.functions\3.0.6\build\Microsoft.NET.Sdk.Functions.Build.targets(41,5): error :
1>C:\Users\asf\.nuget\packages\microsoft.net.sdk.functions\3.0.6\build\Microsoft.NET.Sdk.Functions.Build.targets(41,5): error : The specified framework can be found at:
1>C:\Users\asf\.nuget\packages\microsoft.net.sdk.functions\3.0.6\build\Microsoft.NET.Sdk.Functions.Build.targets(41,5): error : - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=3.0.0&arch=x64&rid=win10-x64
1>C:\Users\asf\.nuget\packages\microsoft.net.sdk.functions\3.0.6\build\Microsoft.NET.Sdk.Functions.Build.targets(41,5): error :
1>C:\Users\asf\.nuget\packages\microsoft.net.sdk.functions\3.0.6\build\Microsoft.NET.Sdk.Functions.Build.targets(41,5): error : Metadata generation failed.
1>Done building project "CodeaApi.csproj" -- FAILED.
Do I need to install version 3.0.1 to make it compatible with Azure Function Apps?
Yes you can resolve this by installing .NET Core 3.1 SDK,
When targeting Azure Functions 3.0, by default, the .NET Core 3.1 SDK
is required on the machine building the project.

Azure DevOps build of Xamarin.iOS project fails - MTOUCH : error MT2002: Failed to resolve "System.Drawing.Color" reference

I have a build issue with a Xamarin.iOS app in Azure DevOps that I haven't been able to solve. I'm wondering if anyone has any suggestions.
Building the iOS version of the app works locally in VS for Mac but fails in Azure due to this error:
MTOUCH : error MT2002: Failed to resolve "System.Drawing.Color" reference from "System.Drawing.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" [/Users/runner/runners/2.164.6/work/1/s/iOS/CatRentalStore.iOS.csproj]
I was having a similar issue with the Android build. I resolved it by switching from the macOS-10.14 hosted build agent to the windows-2019 agent, but that isn't an option with the iOS app.
I've updated packages that may use System.Drawing.Color to the latest stable releases - Acr.UserDialogs, BTProgressHUD, Splat, and Xamarin.Essentials.
I searched the solution source and did not find any direct references to the System.Drawing.Color class.
I also tried specifying the version of Xamarin/Mono to use in the build to match my local version using sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh 6_4_0. That caused a different error to occur:
error MSB4018: The "GenerateDepsFile" task failed unexpectedly.
error MSB4018: System.MissingMethodException: Method not found: System.Collections.Generic.IList`1<NuGet.Packaging.Core.PackageDependency> NuGet.ProjectModel.LockFileTargetLibrary.get_Dependencies()
References to this issue:
https://github.com/mono/mono/issues/13483
https://github.com/xamarin/xamarin-macios/pull/6011
https://github.com/aritchie/userdialogs/issues/654
https://github.com/reactiveui/splat/issues/204
According to this document:
NET Core 2.2.105 is default on VM images but Mono version 6.0 or greater requires .NET Core 2.2.300+. If you use the Mono 6.0 or greater, you will have to override .NET Core version using .NET Core Tool Installer task. If you use 6.4.0, you need to install at least 2.2.300+ .net core.
I had the same problem. Visual Studio sometimes failed to update the reference during the NuGet package upgrade:
These steps helped me resolve my issue (iOS project):
Check every reference and see if it matches the version of the corresponding NuGet package
Check the path/version of the referenced assembly:
Make sure that it matches your installed package version:
If the versions do not match: downgrade the corresponding NuGet package and then upgrade the same NuGet package again and check if the version now matches
I did that procedure one NuGet package at a time. After ensuring that all versions match the build succeeded.
On my dev machine, the older versions were still present in the packages folder. Therefore the build always worked on my machine but not on the build server.

Problem with NuGet package lacking compatible references or files - and its simple solution

Trying to install a package called BarcodeLib from the NuGet Package manager, but it fails with the following message:
Could not install package 'BarcodeLib 2.2.1'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
From the console:
PM> Install-Package BarcodeLib -Version 2.2.1
Attempting to gather dependency information for package 'BarcodeLib.2.2.1' with respect to project 'XXX', targeting '.NETFramework,Version=v4.5'
Gathering dependency information took 498,07 ms
Attempting to resolve dependencies for package 'BarcodeLib.2.2.1' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'BarcodeLib.2.2.1'
Resolved actions to install package 'BarcodeLib.2.2.1'
Retrieving package 'BarcodeLib 2.2.1' from 'nuget.org'.
Install failed. Rolling back...
Package 'BarcodeLib.2.2.1' does not exist in project 'XXX'
Package 'BarcodeLib.2.2.1' does not exist in folder 'C:\Projects\SVN\trunk\etc'
Executing nuget actions took 15,28 ms
Install-Package : Could not install package 'BarcodeLib 2.2.1'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
At line:1 char:1
+ Install-Package BarcodeLib -Version 2.2.1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Time Elapsed: 00:00:00.5761964
Since the error message indicated that the package did not contain any files targeting .NetFrameWork 4.5, I tried to lower the framework version of my project... but that didn't help.
Answering my own question:
It was not the package that was built with an older version of .NET framework. Instead it was me who hadn't got the latest dotnet framework version, that the package required.
I found this out from downloading the project and trying to open it:
The simple solution was to upgrade Visual Studio 2017 to its latest version. Either by following the link in the messagebox (Download targeting pack for v4.6.2).
Most likely there is also a hidden notification about an update in Visual Studio. Show it by writing "Notifications" in quick launch textbox in the upper right corner of Visual Studio 2017, and then choose to automatically install the updates available:

Aurelia Validation Plugin

Any idea what is going on with aurelia-validation (the latest version)? I think something has changed/broken with the versions of the framework/validation I am using. Here are my dependencies currently:
"aurelia-bootstrapper": "github:aurelia/bootstrapper#^0.18.0",
"aurelia-framework": "github:aurelia/framework#^0.17.0",
"aurelia-http-client": "github:aurelia/http-client#^0.12.0",
"aurelia-validation": "github:aurelia/validation#^0.4.1"
As soon as I load the aurelia-validation plugin I get three errors in the chrome console:
Unhandled promise rejection Error: Error invoking TaskQueue. Check the inner error for details. Is there anywhere I can go to find out what versions of the aurelia framework are currently supported by the validation plugin?
It seems that you are trying to use latest version of aurelia-validation with previous version of other Aurelia libraries.
Latest aurelia-validation release is 0.4.1, latest aurelia-framework is 0.18.0, aurelia-bootstrapper 0.19.0 and aurelia-http-client 0.13.0.
Either upgrade all Aurelia libraries to latest version or try to downgrade aurelia-validation to 0.4.0.

Resources