Archive of

[Solution]Microsoft.AspNetCore.Http was marked deprecated

Remove those deprecated NuGet packages, use the ASP.NET Core shared framework instead

With the release of .NET Core 3.0, many ASP.NET Core assemblies are no longer published to NuGet as packages. Instead, the assemblies are included in the Microsoft.AspNetCore.App shared framework, which is installed with the .NET Core SDK and runtime installers. For a list of packages no longer being published, see Remove obsolete package references.

As of .NET Core 3.0, projects using the Microsoft.NET.Sdk.Web MSBuild SDK implicitly reference the shared framework. Projects using the Microsoft.NET.Sdk or Microsoft.NET.Sdk.Razor SDK must reference ASP.NET Core to use ASP.NET Core APIs in the shared framework.

To reference ASP.NET Core, add the following element to your project file:

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>netcoreapp3.1</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <FrameworkReference Include="Microsoft.AspNetCore.App" />
  </ItemGroup>

</Project>

Reference

How to remote desktop fullscreen RDP with just SOME of your multiple monitors

solution

Basically, you need to change or add the following options. The first three lines you can simply copy, but the fourth line, you should change to your own values.

screen mode id:i:2
use multimon:i:1
span monitors:i:1
selectedmonitors:s:3,4

explanation:

  • screen mode id:i:2 -- i means integer: 2 means fullscreen mode
  • use multimon:i:1 -- the remote desktop session will use multiple montiors
  • span monitors:i:1 -- allow to use part of the monitors for remote desktop session
  • selectedmonitors:s:3,4 -- specify what monitors you want to use: the value 3,4 could be different from yours. run mstsc /l (l here is L in lowercase) to check your own monitor ids.

Reference

[GitHub] Viewing all of your issues and pull requests

转一篇老文 - 然而顾客需要我们支持 IE6!

从我的一块旧硬盘里扒拉出来的。译者很有可能是我(因为那段时间我热衷于翻译),但也不十分确定。

By Lea Verou
November 3rd, 2011
Bugs, Clients, Opinion Column
207 Comments

译者按:这篇文章实在太赞了,我忍不住要把它译出来。

当我和其它开发者谈论CSS3的时候,经常谈到令人头痛的顾客。他们告诉我,他们本人并不想让网站在所有的浏览器都表现一致,他们热望尝试所有的新技术,然而顾客坚持要求网站要表现一致,所以这些开发者只得继续使用五年前,甚至十年前的WEB开发技术。他们的顾客不要“优雅地”降级。

问题真的是这样吗?是我们的顾客不了解这些问题吗?问题在于我们的顾客不懂Web或者被教育地不够么?我不这么认为。这坑是我们自个儿挖的,出现这样的问题说起来也怪我们自己。我们不但奋不顾身地跳进坑里,而且乐于用我们的专业技能去解决这些烂问题,而不是去创新。这完全怪我们自己,怪不着任何别人。

等等,你说什么?

…more

正能量脱口秀

这是我在校内外工作时某一年年会的演讲稿,当时的CEO尚是齐总,应该是校内外较早期的阶段了。读了一遍,觉得问题不大,可以公开。那就贴在这里权当另一个备份吧。

要勤奋

要专注

敢说话

说真话

待人要诚恳

要勇于张罗

…more