Граф коммитов

52 Коммитов

Автор SHA1 Сообщение Дата
Jhonatan Sandoval Velasco 51263f75e4
fix: [#6825]Update old packages (#6830)
* update old packages

* revert incompatible packages updates

* remove Backup csproj files
2024-08-01 15:34:57 -05:00
Joel Mut 276bb33945
[#6741] Remove .Net Core 3.1 from projects (#6819)
* Remove netcoreapp3.1 and fix System.Text.Json issue

* Fix System.Formats.Asn1 security issue

* Fix remaining System.Text.Json issue
2024-07-16 15:26:45 -05:00
tracyboehrer 07ed900bb7
Updated NuGet.Packaging (#6749)
Co-authored-by: Tracy Boehrer <trboehre@microsoft.com>
2024-02-14 09:59:43 -06:00
tracyboehrer e588d62225
Updated NuGet.Packaging (#6652)
Co-authored-by: PVAShiproom <pvashiproom@microsoft.com>
2023-06-22 15:20:06 -05:00
Cecilia Avila dc28fac86f
[#6392] Bump Newtonsoft.Json from 12.0.3 to 13.0.1 (#6395)
* Update Newtonsoft.Json to version 13.0.1

* Add custom CosmosSerializer to fix MaxDepth issue

* Remove duplicated Newtonsoft reference
2022-06-30 13:22:50 -05:00
Joel Mut 6e536279d7
[#6173] Remove dotnet 2.1 support from 4.16 (#6187)
* Remove TestBot.NetCore21 project

* Remove netcoreapp2.1 build target from test projects

* Update pipelines' yamls

* Remove netcoreapp2.1 in remaining projects

* Remove tests NETCOREAPP2_1 conditions

* Update 2.1 assemblies

Co-authored-by: CeciliaAvila <cecilia.avila@southworks.com>
2022-02-15 14:26:22 -08:00
Carlos Castro a865276c1d
Components: improved authoring experience + component registration refactor (#5347)
* Components: improved authoring experience + component registration refactor

+ BotComponent base class that acts as the base component definition. New Components implement the Startup() method where they can register services
+ Component registration refactor: resource explorer now receives the list of custom types and converters on construction instead of from a global variable. DialogStateManager now receives the memory scopes and path resolvers from turn state instead of from the global component registrations.
+ Component registration backward compat: introduced component registration bridge generic class that allows any new BotComponent to be exposed through component registration for legacy code
+ Bot components for each of our 1st party components: created new component for Adaptive, QnAMaker, Luis, Orchestrator, Dialogs, Declarative, etc. Also updated their respective component registrations to use the new bridge classes to avoid registration duplication.

* Component registration refactor: add path resolvers and memory scopes to turn state through DI -> AdaptiveDialogBot

* Runtime extensions: remove commented line

* Components: Delete Botcomponent attribute, was not needed

* Component: fix xml comment

* ComponentReigstration refactor: fix tests build

* Adaptive bot component: add DialogSetconverter

* Runtime: move to ConfigurationResourceExplorer, adjust tests

* Runtime: remove unused variable

* Components: REname 'plugins' setting to 'components'

* Runtime: Delete component registrations

* Components: Add CommandActivity related declarative type registrations

* Teams + Adaptive: Make teams a component

* Component: Rename BotComponent.Startup() -> BotComponent.ConfigureServices()

* Runtime: Remove teams from built-in components

* Component: remove component registration unused classes in runtime tests
2021-03-25 12:09:12 -07:00
BruceHaley cb2e0803d1
Let property GeneratePackageOnBuild default to false in projects (#4885)
* Remove property GeneratePackageOnBuild from the projects

* Revert "Remove property GeneratePackageOnBuild from the projects"

This reverts commit ee14394ea1.

* Use $(GeneratePackages) to set value for GeneratePackageOnBuild property in projects

* Add a Clean target for outputpackages directory.

* Move GeneratePackageOnBuild property from 31 projects to Directory.Build.props in libraries folder
2020-10-30 16:40:18 -07:00
BruceHaley 91547d4a65
Drop the use of IsBuildServer (#4791) 2020-10-16 17:24:44 -07:00
Gabo Gilabert 897b96c5c0
Added Directory.Build.props to the libraries folder and moved references for AsyncUsageAnalyzers, FxCop and SourceLink there. (#4414)
This props file also enfoces warnings as errors.
Left a bunch of excludes in the Streaming project, we can remove that once we merge the outstanting PR.
2020-08-07 12:09:05 -07:00
Andy Brown 6ca3185cb5
uischema: port composer ui schema to component schema files (#4341)
* add uischema to editor settings

* port ui schema from composer

* add new line at EOF

* update OnCancelDialog

* remove extraneous properties

* remove empty ui schemas

* include uischemas in csproj references
2020-08-05 22:34:05 -07:00
Monica Rivera 4915c3df6f
Add missing XML documentation to Microsoft.Bot.Builder.Dialogs.Declarative. (#4289)
* Add missing XML documentation.

* Remove <inheritdoc/>, fix typo.

* Add missing docs to OnChanged.
2020-07-27 14:09:25 -07:00
Gabo Gilabert 87bb0044ed
Adds FxCop to Dialogs.Declarative. (#4296)
Applied Dispose pattern to some classes.
Excluded some CA2000 errors (related to ownership transfer)
Added comment for TaskDelay code in ResourceExplorer.
2020-07-21 01:14:05 -04:00
Gabo Gilabert 6720f2cec6
Added FxCop to Microsoft.BotBuilder and addressed errors. (#4141)
* Added FxCop to Microsoft.BotBuilder and addressed errors.
Enabled the SX1309 (FieldNamesShouldBeginWithUnderscores) stylecop rule and addressed the violations on BotBuilder but excluded it from the other projects for now to avoid collisions.
Enabled CA1309 (Use ordinal StringComparison) to the main ruleset and addressed violations.
Added ($NoWarn) to root dir props to make sure tests take this value.

* Enabled AsyncUsage analyzer and fixed violations wherever ir was possible.

* Refactore Task.Run usages to await/async equivalents.

* Updated Adapters folder to use FxCop 3.0

* Refactored ShowTypingMiddleware to avoid using Task.Run so we don't create unnecessary threads.

* Updated constructor to use _httpClient field instead of the expression.
2020-06-24 20:02:33 -07:00
Gabo Gilabert 2963d0da22
Sets warnings as errors and adds FxCop analyzer to Schema project. (#4061)
* Configured TreatWarningsAsErrors on all projects in the libraries folder except for Microsoft.Bot.Builder.Dialogs.Adaptive.Testing (that needs to be addressed separatelly).
Created Directory.Build.props for FunctionalTests and Tests to manage excludes for the projects in those folders.
Added NoWarn properties for documentation on each project (these will be addressed by another issue).
Fixed long hanging fruit warnings.
Added Roslyn FxCop analyzer to Microsoft.Bot.Schema and fixed violation or excluded them using #pragma.

* Fixed binary compat issues

* Fixed more binary compat issues
2020-06-12 13:42:12 -07:00
Tom Laird-McConnell 30162d8af0 nuget.client is a package which is no longer being updated, they replaced it with nuget.packaing which is many versions past the one we were using.
Worse, nuget.client had a bad prerelase package pushed in 2017 that breaks install adaptive into linqpad.
also fixed .dialog files which were not compliant to schema (missing actions node)
2020-05-14 10:11:18 -07:00
Steven Gum 0908005f49
Merge 4.9 into master (#3890)
* [Expression] Add formatNumber, formatEpoch and  formatTicks as prebuilt functions (#3876) (#3883)

* add formatNumber prebuilt function

* change to string output to keep tailing zeors

* Add formatEpoch and formatTicks.
Removed ticks from formatDate and fixed some bugs.
Fixed a bug in JSON conversion where 64 bit/double values were getting truncated.

* Add tests that were dropped.

* Add locale to formatNumber.

* Add 1000's seperators.

* fix a test case

* change a test case

Co-authored-by: Chris McConnell <chrimc@microsoft.com>

Co-authored-by: Chris McConnell <chrimc@microsoft.com>

* override OnComputeId in AdaptiveSkillDialog (#3882)

* override OnComputeId in AdaptiveSkillDialog

* refactor AdaptiveSkillDialog.OnComputeId()

* remove superfluous parenthesis around activity

* apply @stevenic's PR feedback

* Rename $kind Microsoft.SkillDialog => Microsoft.BeginSkillDialog
Rename class AdaptiveSkillDialog => BeginSkillDialog
Move files into actions folders
replace all $kind => new $kind

* Style: Async method nomenclature, missing ConfigureAwait and CancellationTokens

* Rename $kind Microsoft.BeginSkillDialog => Microsoft.BeginSkill
Rename class BeginSkillDialog to BeginSkill

* update title for begin skill

* Cancellation, nomenclature and style improvements

* Cancellation tokens and propagation

* merge CheckForVersionChangeAsync()

* Missing cancellation tokens

Co-authored-by: Shuai Wang <shuwan@microsoft.com>
Co-authored-by: Chris McConnell <chrimc@microsoft.com>
Co-authored-by: Tom Laird-McConnell <tomlm@microsoft.com>
Co-authored-by: Carlos Castro <ccastro@microsoft.com>
Co-authored-by: Carlos Castro <carlosscastro@users.noreply.github.com>
2020-05-12 14:56:58 -07:00
Tom Laird-McConnell ec5fde767b
* change to release version (#3870) (#3872)
* clean up dependencies to be miminum
2020-05-05 13:28:00 -07:00
Tom Laird-McConnell 9de052ed3a
Merge pull request #3807 from microsoft/tomlm/contentfiles
bump assembly version 4.8 => 4.9
2020-04-27 14:09:49 -07:00
Tom Laird-McConnell dfade58196 switch to LocalPackageVersion set in directory.props 2020-04-27 08:01:09 -07:00
Tom Laird-McConnell 0ec0989bb7 mark as content 2020-04-25 12:18:31 -07:00
Tom Laird-McConnell 7c9cae9872 bump version 4.8 => 4.9
Add missing contentFiles attribute
remove over inclusion of json files.
add publishRepositoryUrl
2020-04-25 08:15:51 -07:00
Tom Laird-McConnell f4e01bf555
* Move extensions to resourceExporer and make non-static (#3640)
* Add fallback for stringonly reference binding "foo.xxx" => looks for "foo.xxx.dialog" and if not found attempts to bind to "foo.xxx",

The point of these changes is that it allows new extensions to be added to the resource explorer, and if there are object bindings for those extensions they will be used.

For example, this captures 2 scenarios:
1. "recognizer":"foo.lu" => will bind to lubuild output of "foo.lu.dialog"
2. "schema":"foo.schema" => will attempt to bind to foo.schema.dialog, and then fall back to foo.schema, which is a valid JSON object to bind. (Thus removing the need to have schema file be foo.schema.dialog which is kind of nonsense.

* removed some unused fields,
* cleaned up some nonsense I disovered in .csproj files
* added .qna files to pattern list
2020-03-30 14:14:58 -07:00
BruceHaley 9ac0774b24
Add SourceLink to these 3 projects (#3404) 2020-02-18 15:56:11 -08:00
Hongyang Du (hond) 36e0b1335a
migrate expression namespace from Microsoft.Bot.Expressions to AdaptiveExpressions (#3375) 2020-02-12 14:28:24 +08:00
Chris McConnell a9ccf3877f
External Entities & Dynamic lists (#3300)
* Updated schema.

* Added DynamicList and External entity support to declarative LUIS Recognizer.
Improved MockLuis to pay attention to parameters.

* Update cache files.

* Update LuisRecognizerOptionsV3 to include support for DialogContext.

* ExternalEntity recognizer tests running.

* Move LUIS loader and convert to LUIS library.

* Update TestBot to better handle one dialog.

* Fix TestBot to work more reliably.

* Move expression properties to its own library in order to support using them in LUIS Recognizer without introducing cycles.

* Fix bogus build warnings.

* Connect expresssion to dynamic lists.

* Add LuisAdaptiveRecognizer to wrap LUISRecognizer functionality including expressions.  This is also a breaking change because appid, etc. now is expressions.
Fixed bug in ArrayExpressionConverter where other convertes would not be used.

* Add explicit adapter dynamic list to get around serialization/deserialization issues.
Add test that uses expression.

* Update generator unit tests.

* Switch to $role filling in string type.
Get rid of lg and memorypath roles.

* Update tests to run without a secret when LUIS results are cached.

* Add back in extension method.

* Remove LuisRecognizer from Recognizer since LuisAdaptiveRecognizer handles the mismatch.

* Remove unneeded dependency.

* Address code review comments.
2020-01-29 14:33:52 -08:00
Tom Laird-McConnell c7278119a7
RegExRecognizer refactor and fix for Capture groups (#3196)
* regexrecognizer didn't correclty hook up regex capture groups with  results of entityRecognizerSet
Also had bugs around mapping from Entity to RecognizerResult format.

* update csproj for local 4.8

* clean up entity recognizers signatures to be virtual and have text recognizer based base class for the text recgonizer classes

* normalize entity properties to be camelcase

* add virtual
2020-01-07 09:17:51 -08:00
Eric Dahlvang c9d9240ee1 upgrade newtonsoft package reference 2019-11-25 12:06:26 -08:00
Tom Laird-McConnell 7404c1bc8c * add multiple targets frameworks for unit tests
* make sure that all libraries are consistently making full pdb symbols with debug builds
2019-11-08 14:20:32 -08:00
Tom Laird-McConnell 4fc789931f
add IsBuildServer and ReleasePackageVersion (#2865) 2019-10-25 13:58:08 -07:00
Tom Laird-McConnell c72f3b9dd3 fix luis ref case 2019-10-24 14:05:22 -07:00
Tom Laird-McConnell 100d859fd9 fix all warnings and clean up package iconurl and nuget definitions 2019-10-10 10:15:02 -07:00
Tom Laird-McConnell 3bb9d6f914 considate expression.parser into expression and rename 2019-10-09 15:41:43 -07:00
Tom Laird-McConnell 7e4ea1a504 clean up csproj files to use build.props definition for signing 2019-10-08 16:17:27 -07:00
Chris McConnell 6ee0905c20 Switch to portable pdb files in order to support debugging in Visual Studio Code. 2019-10-01 13:35:40 -07:00
Tom Laird-McConnell ab043c22cd remove project level -windows configurations, and have just solution configurations for turning on off builds 2019-09-27 14:42:46 -07:00
Tom Laird-McConnell 4ee24f4334 remove debug-nuget configuration 2019-09-26 16:55:30 -07:00
Tom Laird-McConnell 71a049abc3 Add PreviewPackageVersion
Change all preview libraries to use ${PreviewPackageVersion)
Drop -standard.sln, consolidating to one solution
Add Debug-Windows, Release-Windows build configurations (Debug/Release is core libraries)
update all project files to have correct nuget package references
2019-09-26 16:28:15 -07:00
Tom Laird-McConnell 0e225220f7 * Move LanguagePolicy to LangaugeGenerator lib
* Remove activeTags from dialogContext
* change waterfalldialog back to steps
*
2019-09-05 20:49:13 -07:00
Tom Laird-McConnell f2cccf13ef * pull all classes into their own file
* move language generation assets out of dialog and into languagegeneration libs
* rename LanguageGenerator.Render -> LanguageGenerator.TEmplates
* refactor Type registration out of TypeLoader and into respective dialogs
2019-09-05 20:20:10 -07:00
LocalizationBuildProcess fb8a216d20 Reference warning fixes to 2 projects. 2019-08-21 16:52:39 -07:00
Tom Laird-McConnell d27a37da7c more luis case 2019-07-12 11:46:51 -07:00
Tom Laird-McConnell 8d6b2634c6 fix case sensitive path mismatches which break build on linux 2019-04-29 11:55:49 -07:00
Tom Laird-McConnell 5fef8efa20 change to .netstandard version of nugetpackage 2019-04-19 12:02:26 -07:00
Tom Laird-McConnell 0a09fa98ff removed nuget dependency on composition 2019-04-11 21:13:03 -07:00
Tom Laird-McConnell 99e3e1fb14 remove empty folder 2019-04-06 20:08:48 -07:00
Tom Laird-McConnell 6378b465d3 Dropped NoMatchRule
Dropped WelcomeRule
Added NoneIntentRule
Added BeginDialogRule
Added AdaptiveDialog.AutoEndDialog
Renamed CancelDialog -> CancelAllDialogs
Changed all tests to use EndDialog instead of CancelDialog
Fixed consultation to properly handle CanProcess with NoneIntents
Changed expression combination to use structured Expression objects.
Moved debugger to Dialog library
Added Debugger .NET registrations for executation against instance graph
Changed FileLogger append instead of rewrite file
2019-04-05 20:43:42 -07:00
Carlos Castro 18add112c9 Adaptive general code quality: improve docstrings, add copyright, add comments, rename Dialogs.Rules -> Dialog.Adaptive 2019-04-01 11:50:46 -07:00
Chris McConnell 942944a40f Compiling and revamped namespaces. 2019-03-26 19:03:33 -07:00
Tom Laird-McConnell 2c65865053 everything builds 2019-03-17 16:59:26 -07:00