如何通过 gmail 将整个 .Net 项目作为附件发送?

发布于 2024-09-30 12:11:33 字数 251 浏览 7 评论 0原文

我经常与学生一起完成他们的 .Net 编码作业。完成后我想通过电子邮件将代码发送给他们。最简单的事情就是压缩项目文件夹并发送整个文件,但 gmail 总是删除我的附件,因为它们包含可执行文件。一般来说,它只是 myproject.vshost.exe 或类似的无害的东西,但必须找到替代的上传位置,然后通过电子邮件发送链接到该位置,这很痛苦。有没有人能够找到一种解决方法,让我可以通过 gmail 发送这样的附件?

我怀疑这个问题的答案是“不,这是不可能的”,但我还是会问

I'm frequently working with students on their .Net coding assignments. I'd like to email the code to them when we're done. The easiest thing would be just to zip the project folder and send the whole thing, but gmail always strips out my attachments because they contain executables. Generally it's just the myproject.vshost.exe or something innocuous like that, but it's a pain to have to find an alternative upload location and then email the link to that. Has anyone been able to find a workaround that would allow me to send attachments like this via gmail?

I suspect the answer to this is "nope, it's not possible," but I'll ask anyway

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

回首观望 2024-10-07 12:11:33

如果您压缩项目中除 /bin 和 /obj 文件夹之外的所有内容,则应该可以将项目发送给它们。当他们获得项目时,他们只需再次编译即可获得可执行文件,但所有代码都已经在那里了。

If you zip up everything in your project except the /bin and the /obj folders, you should be okay sending the project to them. When they get the project, they simply need to compile it again to get the executable, but all the code will already be there.

灰色世界里的红玫瑰 2024-10-07 12:11:33

另一个答案是加密 zip 文件或 rar 文件。如果您使用 winrar,您可以设置密码并选择“加密文件名”。这将绕过 Gmail 过滤器。

Another answer is to encrypt the zip file or rar file. If you use winrar you can setup a password and choose "encrypt file names". This will bypass the gmail filter.

心房的律动 2024-10-07 12:11:33

将文件扩展名(例如project.zip)重命名为project.zub
这个技巧对我有用......

Rename the file extension e.g project.zip to project.zub
This trick worked for me...

oО清风挽发oО 2024-10-07 12:11:33

Gmail 将允许您发送 zip 文件,只要其名称不为 zip。因此,如果您将其命名为 .zop 并告诉他们重命名然后解压缩,它过去对我有用。

Gmail will allow you to send a zip file as long as its not named zip. so if you name it .zop and tell them to rename it then unzip it, it has worked for me in the past.

开始看清了 2024-10-07 12:11:33

只需压缩整个项目并将其上传到谷歌驱动器即可。将其上传到驱动器后,您将获得共享设置选项,通过该选项您可以提供要发送的人的电子邮件 ID。
该链接将发送给该​​人,他/她可以轻松下载......

享受吧!

Just zip your whole project and upload it to the google drive. After uploading it into the drive you will get an option of sharing setting and through that you can feed the email id of the person whom you want to send it..
That link will be sent to that person and he/she can download it easily...

Enjoy!

烟─花易冷 2024-10-07 12:11:33

我假设您正在使用 Visual Studio 的某种风格 - Visual Studio 的 clean 命令 能满足您的要求吗?

I assume you're using some flavour of of Visual Studio - does Visual Studio's clean command do what you want?

就此别过 2024-10-07 12:11:33

看看这个
http://visualstudiogallery.msdn.microsoft.com/en -us/c736dedf-bbed-454a-8073-89993ca46902

该工具允许您自动从解决方案或项目创建备份(zip 文件)
你还可以直接从 VS 发送代码块到任何电子邮件客户端,这非常简洁。

take a look on this
http://visualstudiogallery.msdn.microsoft.com/en-us/c736dedf-bbed-454a-8073-89993ca46902

That tool allows you to create Backups (zip files) from solutions or projects automatically
and you can also send code chunk directly from VS to any Email Client, it's pretty neat.

小梨窩很甜 2024-10-07 12:11:33

很简单。
您可以压缩项目,将文件扩展名更改为“.txt”并愉快地发送!
只需告诉您的学生将文件扩展名再次更改为“.zip”,然后解压缩即可! :)
与雅虎邮件一起使用。不过从来没用过gmail。请尝试并让我们知道结果。

very simple.
you can zip the project , change the file extension to " .txt " and send it happily!
just tell your students to change the file extension again to ".zip"and then unzip it! :)
works with yahoo mail. never used gmail though. please try and let us know the results.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文