pdfsharp开源项目编译报错

好久没有写blog了,靠,为什么那些高手有那么多时间写博客的呢,一时心血来潮也来写两句吧— —|||...最近因项目需要使用了一下pdfsharp,编译报编码错误。因为pdfsharp的代码默认使西欧编码。解决方法:找到出现编码错误的代码,右键-》打开方式-》选择[带编码的功能的CSharp编辑器] -》选择[西欧(Windows)-代码页1252]-》打开cs文件-》拷贝cs页面内容 …… 阅读全文

asp.net web api

1:修改App_Start/WebApiConfig.cs文件,使用json以及修改路由using System;using System.Collections.Generic;using System.Linq;using System.Web.Http;using System.Net.Http.Formatting;using Newtonsoft.Json.Conver …… 阅读全文

System.Security.Cryptography.CryptographicException

项目背景: asp.net mvc升级到5.2.0.0,web.config的System.Web設置了machineKey错误:在cshtml的@Html.AntiForgeryToken()抛出System.Security.Cryptography.CryptographicException异常解决:重置web.config的静态机器码 参考:http:/ …… 阅读全文

去掉VSS代码控制

1:删除.vssscc、vssver.scc 、项目名.csproj.vspscc文件2:.csproj文件删除以下内容 SccProjectName = "SAK" SccLocalPath = "SAK" SccAuxPath = "SAK" SccProvider = "SAK"3:最后在.sln文件中找VSS的相关信息,并将其删除 …… 阅读全文

VS2017下载更新

一:官网地址https://www.visualstudio.com/zh-hans/downloads/二:下载vs下载器比如我们将它下载放在C:\Users\baijinwen\Downloads\vs_community.exe三:下载离线安装文件我们希望将离线安装文件下载到H:\vs2017文件夹, 打开cmd,输入cd C:\U …… 阅读全文

CMD常用命令

一:Windows命令winver---------检查Windows版本wmimgmt.msc----打开windows管理体系结构wupdmgr--------windows更新程序winver---------检 查Windows版本wmimgmt.msc----打开windows管理体系结构wupdmgr--------windows更新程序wscript-- …… 阅读全文