将C#项目从visual studio 2010降级到visual studio 2008(Downgrade C# Project from visual studio 2010 to visual studio 2008)
我编写了一个visual c#2008窗体窗体应用程序,然后我编辑了一个拥有visual studio 2010的计算机中的代码,但我无法再在visual 2008中运行它,有没有办法可以做到这一点?
I wrote a visual c# 2008 windows form application ,then i edited the code in a computer which had visual studio 2010,but i can no longer run it in visual 2008,is there a way i can do this?
原文:https://stackoverflow.com/questions/2688191
最满意答案
我向大家道歉,你必须使用
-I
忽略二进制文件。 那些是正在返回的文件。 直到我删除-l
,我才意识到这一点,这表明结果本质上是二元的。grep -rlI '`' ./*
从手册页:
-I Process a binary file as if it did not contain matching data; this is equivalent to the --binary-files=without-match option.
My apologies everyone, you have to use
-I
to ignore binary files. Those were the files that were being returned. I didn't realize this until I removed-l
, which indicated to me that the results were binary in nature.grep -rlI '`' ./*
From the man page:
-I Process a binary file as if it did not contain matching data; this is equivalent to the --binary-files=without-match option.
相关问答
更多-
我如何grep反向提示?(How do I grep for a backtick?)[2021-12-20]
我向大家道歉,你必须使用-I忽略二进制文件。 那些是正在返回的文件。 直到我删除-l ,我才意识到这一点,这表明结果本质上是二元的。 grep -rlI '`' ./* 从手册页: -I Process a binary file as if it did not contain matching data; this is equivalent to the --binary-files=without-match option. My apologies eve ... -
最快的grep(Fastest possible grep)[2022-07-22]
尝试使用GNU parallel ,其中包括一个如何使用grep的例子 : grep -r通过目录递归递归。 在多核CPU上,GNU parallel可以加快速度。 find . -type f | parallel -k -j150% -n 1000 -m grep -H -n STRING {} 这将运行每个核心1.5个工作,并给出1000个参数grep 。 对于大文件,它可以使用--pipe和--block参数将输入分成几个块: parallel --pipe --block 2M grep fo ... -
用grep转义<和>(Escaping < and > with grep)[2022-05-26]
转义它们会激活它们的元字符属性并将它们转换为GNU grep中的单词边界: $ grep 'foo' file foofoobar $ grep '\ ' file foo 上面的第二个grep没有查找字符串 ,它正在寻找字符串foo不会在字构成字符之前或之后立即成功。 一般来说,如果不确切知道这意味着什么,就逃脱角色是不安全的。 这是另一个例子: $ printf 'aa\na{2}b\n' aa a{2}b $ printf 'aa\na{2}b\n' ... -
在grep中使用OR(Using OR in grep)[2021-04-29]
grep -B3 'Max_value: \(127\|32767\)' proc_*.* grep -B3 'Max_value: \(127\|32767\)' proc_*.* -
用通配符grep(grep with wildcards)[2022-12-21]
如果这些是您需要搜索的唯一字符串,请使用-F (grep表示固定字符串): grep -F "directory1 directory2 directory3" file.txt 如果你想使用更高级的正则表达式grep,请使用-E (使用扩展正则表达式): grep -E 'directory[1-3]' file.txt 请注意,某些grep (如GNU grep)不需要-E来运行此示例。 最后,请注意您需要引用正则表达式。 如果不这样做,你的shell可能会首先根据路径名扩展扩展正则表达式(例如,如 ... -
从infile反向grep(reverse grep from infile)[2022-07-31]
这可行: comm -1 -3 <(sort file_1) <(sort file_2) 测试: [jaypal:~/Temp] comm -1 -3 <(sort file_1) <(sort file_2) F-J5-N2 F-J5-N3 F-J6-N1 F-J6-N2 F-J6-N3 F-J6-N4 F-J6-N5 F-J6-N6 F-J6-N7 F-J6-N8 F-J8-N1 F-J9-N1 F-J9-N2 更新: [jaypal:~/Temp] cat ff1 E-J1-N4 D-J5-N7 ... -
在stdin上使用grep(Use grep on stdin)[2023-04-08]
这似乎很好。 也许你可以在dup2之后关闭一些fds: // in child process dup2(fd[0], STDIN_FILENO); close(fd[0]); close(fd[1]); 编辑: 似乎有拼写错误: "/bin/grep/" 它应该是: "/bin/grep" It seems to be quite OK. Maybe you could close some fds after dup2: // in child process dup2(fd[0], STDIN_FI ... -
如何通过awk使用grep?(How to use grep via awk?)[2021-11-23]
在Gnu Awk中,您可以使用\<和\>来匹配单词的开头和结尾,所以 gawk '/\/{++i} END{print i}' 会做同样的事情 grep -wc 'GOOD' file 如果你想计算GOOD这个词的出现总数(不仅是行数,还有给定行/记录中的出现次数),你可以在Gnu Awk版本4中使用FPAT , gawk 'BEGIN { FPAT="\\ "; RS="^$" } { print NF }' file 如果要计算给定记录中短语GOOD DI的完全匹配数, ... -
使用数学和grep(Using math and grep)[2023-09-24]
grep有-c选项只打印事件,你应该利用它而不是产生另一个进程和一个匿名管道: grep -c '' file.txt 要从两次搜索中减去计数,您可以使用命令替换直接减去它们: echo $(( $(grep -c ' ' file.txt) - $(grep -c ' ' file.txt) )) 如果您喜欢,也可以使用两个变量: count_1=$(grep -c ' ' file.txt) count_2=$(grep ... -
在grep中使用“^ - ”(Usage of “^-” in grep)[2022-06-14]
在${CONFIG_FILE}之后,我没有看到x任何目的。 也许有一个早期版本的脚本,他们没有引用变量,所以他们写道 echo -e ${CONFIG_FILE}x 在这种情况下,即使变量为空, x确保有一个echo参数。 但引号解决了这个问题,因此不再需要x 。 grep -q "^-"测试输入的第一个字母是否为- 。 正则表达式^匹配行的开头,并且-匹配自身。 -q选项告诉grep不打印匹配行,它只是根据它是否匹配来设置其退出状态。 I don't see any purpose to the x a ...