Posts

Image
This article will summarize the development of Add-Ins for Outlook.  Use the basic template using Yeoman and Yeoman Generator. Development environment OS: Windows 11 .Net version: 8.0 Development tool: Visual Studio Code Node.js version: 18.20.4 Yeoman version: 5.0.0 Development language: React, Typescript

[NETSDK1136] the target platform must be set to windows

  ■ Issue How to resolve the error message below when building by creating a project based on .Net 8.0 and adding the <UseWindowsForms>true</UseWindowsForms> property to the project file (.csproj). error NETSDK1136: The target platform must be set to Windows (usually by including '-windows' in the TargetFramework property) when using Windows Forms or WPF, or referencing projects or packages that do so. ■ Solution Among the properties of the project file (.csproj) < TargetFramework > net8.0 </ TargetFramework > Add -windows to TargetFramework property < TargetFramework > net8.0-windows </ TargetFramework >

How to delete temporary files in Windows 11

Image
 Let's summarize how to delete temporary files to increase Windows storage space. 1. Delete temporary files 1) Press the Windows Start button and enter ‘delete temporary files’ in the search bar. 2) Select 'System > Storage > Temporary Files' 3) Delete temporary files 2. Delete temp files manually 1) Press Win + R and type %temp% 2) Delete all items in the Windows temporary folder. (If it says that items currently in use cannot be removed, just ignore them.)

[NextJS] Error: Could not find a production build in the '.next' directory. Try building your app with 'next build' before starting the production server

Image
  ■ ISSUE I created a new project with the  npx create-next-app@latest  command and ran npm start, but an error occurred.     ■ Solution The issue was resolved by following the steps below. The error message itself is a message telling you to run it after building. \> npm run build \> npm start  

Check whether Powershell is running with administrator privileges

Image
 In the previous post, I was using Oh My Posh to apply a theme to Powershell, but the prompt line was pushed back when I 'Run as Administrator'. Let me summarize how I solved this in my own way. Customizing Windows Powershell For example: When run with administrator privileges, one line is pushed So, I decided to remove the time and speed display on the right side when 'Run as administrator' in the Powershell profile. 1. Copy the existing theme file and call the theme when ‘Run as administrator’. 2. Remove the right attribute from the copied theme file and save it as a separate theme file. {   "$schema": " https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json ",   "blocks": [      {       "alignment": "right",       "segments": [         {          ...

[NU1100] Unable to resolve 'Swashbuckle.AspNetCore.Swagger (>= 6.*.*)' for 'net8.0'

■ Issue In my case, when I update the OS from Windows 10 to 11 and create or build a project, the error message below appears. Unable to resolve 'Swashbuckle.AspNetCore.Swagger (>= 6.4.0)' for 'net8.0'    Reinstalling the .Net 8.0 sdk did not solve the problem, but after Googling, I found that the problem was caused by not properly recognizing the nuget.org information included in the nuget.config file. ■ Solution 1)  First, run the command below in the project folder, and if the problem is not resolved, proceed to 2). \> dotnet nuget locals all --clear 2) Delete the NuGet.config file that exists in the folder below and rerun it.  C:\Users\{User}\AppData\Roaming\NuGet 3) Run the command below \> dotnet restore  

.Net Web API development based on MariaDb

Image
 This article will cover how to implement Restful Web Api based on .Net 8.0 and how to import and save MariaDb data as Web Api. Development environment OS : Windows 11 .Net Version : 8.0 Development Tool : Visual Studio Code MariaDb 11.5 EntiryFramework

Popular posts from this blog

Setting up Windows Powershell with Oh-My-Posh

[NETSDK1136] the target platform must be set to windows