What is the simple way to synchronize to folder using .Net? [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
What is the simple way to synchronize files between source and target directories in .Net without using other libraries?

You can use the Microsoft Sync Framework.
Here is an example from MSDN for synchronizing files using the above.

Robomojo - A .Net shell for RoboCopy.
http://robomojo.codeplex.com/
A .Net shell for RoboCopy. Copy whole directory structures with ease. Ideal for backups and deployments. Store your RoboCopy.exe commands for easy (and repeatable) use. WPF front-end, DI data access.

Related

How Can I Share Document Files with Multiple Web Projects? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have three ASP.NET MVC Projects. before I use one single Directory to manage documents/files, and all projects can access from that source, but now I have to store files in particular projects (under App_Data) and have to access from other projects.
My question is, how can I manage this?
Linking files in Visual Studio could perhaps be a solution to your problem.
https://jeremybytes.blogspot.com/2019/07/linking-files-in-visual-studio.html
I used it myself the other day where I needed a single .csv file available in multiple projects.

Developing in C# on Linux [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I wonder if I can develop in C# on Linux to produce an application which runs under Windows without using .Net Core (= using standard .Net Framework)
Is it possible? What compiler should I use?
What solutions would you suggest for testing? I think of VM but there might be other solutions.
Yes, to some extent, it is possible using Mono. Mono supports WinForms: http://www.mono-project.com/docs/gui/winforms/
See compatibility here: http://www.mono-project.com/docs/about-mono/compatibility/

Programmatically accessing TFS history [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a solution under TFS source control and had written some sample code using an external library that was deleted a few months ago. I am certain that the code was checked in before that class file was deleted.
I am able to manually browse to previous versions of even deleted files and copy old code but the number of check-ins is massive since then.
Is there a way to programmatically access TFS history using C# so I can automate the process of "Find in historic/deleted files"?
I know people have written scripts in PowerShell for TFS but I'd prefer to write a C# utility if it is possible. Any hints in the right direction would be appreciated.
Shai Raiten's Blog is great for learning the TFS API.
For getting file history - read this post:
http://blogs.microsoft.co.il/shair/2014/09/10/tfs-api-part-55-source-control-get-history/

.net framework with scrapy python [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Is it possible to use .NET framework with the Python scrapy framework to scrape data from different sites?
I am working on my final year project in which I want to use C# as front end language and Python for scraping the data.
I don't think it is possible, because Scrapy uses twisted networking engine which can not run on IronPython
Alternatively, you may start your spider/crawler through command line using C# and then interact with it using JSON API
Take a look at ScrapySharp, also described on this blog, which is the C# version of python's Scrapy.

Create Sandbox C# [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
are there any tutorials out there on how to create a sandbox using C#?
I would like to personalize my own one, thanks
Study up on using AppDomains. Here's some code examples.
We just recently used the MonoSandbox for Security reasons.
I don't know if it works with standard Microsoft's CLR, or if it is specific to the Mono implementation, but I think it works better than just a custom sanbdbox using AppDomains, and since the source code is open you can probably find a way to make it work for you.
The best documentation I have found for the MonoSandbox is here: http://www.mono-project.com/MonoSandbox
I would start by looking at Code Access Security.

Categories