mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-23 13:33:48 +00:00
Pinned the .NET runtime to the version in metadata.txt (#1221)
This commit is contained in:
1 parent
37e6161ccc
commit
b6d614d96a
2 files changed
+31
-2
No files matched your search
@@ -54,6 +54,30 @@
|
||||
<RequiresAspNetWebAssets>true</RequiresAspNetWebAssets>
|
||||
</PropertyGroup>
|
||||
|
||||
<!--
|
||||
The published app brings the .NET runtime which line 5 of metadata.txt names, whatever SDK builds it.
|
||||
Without a fixed version, the SDK takes the runtime it knows itself, and a build with an older SDK would
|
||||
ship an older runtime than our other builds. The Flatpak is such a build: its SDK extension on Flathub
|
||||
may lag behind for months. The version fixes the runtime packs, the app hosts, the trimmer, and the
|
||||
package with the script of Blazor alike. The restore downloads these packages, so the version has to be
|
||||
known while MSBuild evaluates the project; the target ReadMetaData runs too late for that, and it only
|
||||
checks the version.
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<MetaDotnetRuntimeVersion Condition="Exists('$(MSBuildThisFileDirectory)../../metadata.txt')">$([System.Text.RegularExpressions.Regex]::Split($([System.IO.File]::ReadAllText('$(MSBuildThisFileDirectory)../../metadata.txt')), '\r?\n')[4].Split(' ')[0])</MetaDotnetRuntimeVersion>
|
||||
<RuntimeFrameworkVersion>$(MetaDotnetRuntimeVersion)</RuntimeFrameworkVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<!--
|
||||
The trimmer is a .NET program of its own, which runs on the runtime of the SDK and needs a runtime at
|
||||
least as new as itself. An SDK older than the pinned runtime, such as the one of the Flatpak, could not
|
||||
start the trimmer of the pinned version. Then the trimmer of that SDK does the work. It ships with
|
||||
nothing, so the app still brings the pinned runtime.
|
||||
-->
|
||||
<ItemGroup Condition="'$(MetaDotnetRuntimeVersion)' != '' And $([MSBuild]::VersionLessThan('$(BundledNETCoreAppPackageVersion)', '$(MetaDotnetRuntimeVersion)'))">
|
||||
<PackageReference Include="Microsoft.NET.ILLink.Tasks" Version="$(BundledNETCoreAppPackageVersion)" PrivateAssets="all" />
|
||||
</ItemGroup>
|
||||
|
||||
<Import Project="..\Trimming.props" />
|
||||
|
||||
<ItemGroup>
|
||||
@@ -126,6 +150,9 @@
|
||||
<Target Name="ReadMetaData" BeforeTargets="BeforeBuild">
|
||||
<Error Text="The ../../metadata.txt file was not found!" Condition="!Exists('../../metadata.txt')" />
|
||||
|
||||
<!-- Without this check, a broken line 5 would let the SDK pick the runtime by itself, without a word: -->
|
||||
<Error Text="Line 5 of ../../metadata.txt names no .NET runtime, such as '10.0.15 (commit 8e0f8ed231)', but '$(MetaDotnetRuntimeVersion)'. The build ships the runtime which this line names, see RuntimeFrameworkVersion." Condition="!$([System.Text.RegularExpressions.Regex]::IsMatch('$(MetaDotnetRuntimeVersion)', '^\d+\.\d+\.\d+$'))" />
|
||||
|
||||
<ReadLinesFromFile File="../../metadata.txt">
|
||||
<Output TaskParameter="Lines" PropertyName="Metadata" />
|
||||
</ReadLinesFromFile>
|
||||
@@ -133,8 +160,9 @@
|
||||
<!--
|
||||
metadata.txt names the .NET SDK which the pipeline pins, but a local build may use another
|
||||
one. Hence, we take the SDK which builds right now. Its .version file starts with the commit
|
||||
it was built from. The .NET runtime is not recorded at all: the app asks for it while it runs.
|
||||
Neither is the Rust compiler, which the app learns from the runtime it built.
|
||||
it was built from. The .NET runtime is not recorded here: the app asks for it while it runs, and
|
||||
RuntimeFrameworkVersion above makes it the one in metadata.txt. Neither is the Rust compiler,
|
||||
which the app learns from the runtime it built.
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<DotnetSdkVersionFile>$(NetCoreRoot)sdk/$(NETCoreSdkVersion)/.version</DotnetSdkVersionFile>
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
- Improved the assistants when a request nearly fills the context window of the selected model: before sending it, AI Studio tells you, so that you can attach fewer or smaller files, or send the request anyway.
|
||||
- Improved the settings of the AI tasks, which AI Studio hands to a model on its own, such as the data source selection or the text content cleaner, formerly called agents: for each of them, you can now set the minimum confidence its provider needs, and the provider selection tells you which model AI Studio uses when you choose none.
|
||||
- Improved classic RAG: when the model you chose for selecting data sources or validating retrieval contexts may not see the data sources of your chat, AI Studio now uses the model of the chat for this step instead of skipping it.
|
||||
- Improved the Flatpak version of AI Studio for Linux: it now ships the same up-to-date version of .NET as all other versions of AI Studio.
|
||||
- Changed the icons of AI Studio to Lucide, an open-source icon set. All icons now share one style, and each feature shows the same icon wherever you meet it.
|
||||
- Fixed assistant plugins, which all appeared under "Installed Assistants" on the assistants page. Each one now appears under its own category, such as "Business", next to the built-in assistants of that category.
|
||||
- Fixed the Assistant Builder, which ignored the category you chose for your assistant. You can now also name a category of your own.
|
||||
|
||||
Reference in new issue
Block a user