Skip to content

Commit 0904c9a

Browse files
committed
Minor nips and tucks
1 parent c05b3a4 commit 0904c9a

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

devops/install/install_CUDnn.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ if "!cuda_major_version!" == "12" (
252252
REM being added. So: do all the changes in one fell swoop.
253253
REM 2. We can't use setx /M PATH "%PATH%;C:\Program Files\NVIDIA\CUDNN\v!version!\zlib\dll_x64"
254254
REM because setx truncates the path to 1024 characters. In 2022. Insanity.
255-
REM 3. Only update the path if we need to. Check for existance before modifying!
255+
REM 3. Only update the path if we need to. Check for existence before modifying!
256256

257257
echo Updating PATH environment variable...
258258

src/SDK/NET/Common.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
22

33
<!--
4-
This file deinfes the following constants if they are applicable to the current system
4+
This file defines the following constants if they are applicable to the current system
55
66
Windows
77
Linux

src/server/wwwroot/assets/explorer.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ this image in the image results pane
171171
*/
172172
function previewImage(fileChooser) {
173173

174-
if (fileChooser.files)
174+
if (fileChooser.files.length)
175175
showPreviewImage(fileChooser.files[0]);
176176
}
177177

@@ -233,9 +233,6 @@ function showResultsImage(imageToSet, width, height) {
233233
if (width) imgElm.style.width = width + "px";
234234
if (height) imgElm.style.height = height + "px";
235235
}
236-
else {
237-
alert('Please select a valid image file.');
238-
}
239236
}
240237

241238
function showResultsImageData(data, width, height) {

tests/CodeProject.AI.SDK.Tests/CodeProject.AI.SDK.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<Import Project="../../src/SDK/NET/Common.targets" />
44

55
<PropertyGroup>
6+
<TargetFramework>net9.0</TargetFramework>
67
<IsPackable>false</IsPackable>
78
<IsTestProject>true</IsTestProject>
89
</PropertyGroup>

tests/QueueServiceTests/CodeProject.AI.API.Server.Backend.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<Name>API Server Tests</Name>
99
<IsPackable>false</IsPackable>
1010
<Platforms>AnyCPU;ARM64</Platforms>
11+
<TargetFramework>net9.0</TargetFramework>
1112
</PropertyGroup>
1213

1314
<ItemGroup>

0 commit comments

Comments
 (0)