Click here to Skip to main content
15,847,653 members
Home / Discussions / C#
   

C#

 
GeneralRe: Converting Linq to Sql Code Pin
Dave Kreskowiak8-Feb-23 18:49
mveDave Kreskowiak8-Feb-23 18:49 
GeneralRe: Converting Linq to Sql Code Pin
samflex8-Feb-23 19:22
samflex8-Feb-23 19:22 
GeneralRe: Converting Linq to Sql Code Pin
Richard MacCutchan8-Feb-23 22:55
mveRichard MacCutchan8-Feb-23 22:55 
Questioncode smell ? C# public class with everything in it declared 'static Pin
BillWoodruff8-Feb-23 6:32
professionalBillWoodruff8-Feb-23 6:32 
AnswerRe: code smell ? C# public class with everything i it declared 'static Pin
OriginalGriff8-Feb-23 9:12
mveOriginalGriff8-Feb-23 9:12 
GeneralRe: code smell ? C# public class with everything i it declared 'static Pin
Gerry Schmitz8-Feb-23 10:04
mveGerry Schmitz8-Feb-23 10:04 
AnswerRe: code smell ? C# public class with everything in it declared 'static Pin
englebart6-Mar-23 18:22
professionalenglebart6-Mar-23 18:22 
QuestionRunning MSBuild Commands from My C# console application. Pin
Madhurima Dutta7-Feb-23 5:56
Madhurima Dutta7-Feb-23 5:56 
i have been using cliwrap for running git commands and passing the arguments. But it seems to have failed while running my msbuild command from my c# console application.

What i am trying-
var stdOutSetup = new StringBuilder();
var stdErrSetup = new StringBuilder();
var Setup = await Cli.Wrap("msbuild")
.WithArguments("/t:scmclean && /t:setup")
.WithStandardOutputPipe(PipeTarget.ToStringBuilder(stdOutSetup))
.WithStandardErrorPipe(PipeTarget.ToStringBuilder(stdErrSetup))
.ExecuteBufferedAsync();




var stdOut2 = stdOutSetup.ToString();
var stdErr2 = stdErrSetup.ToString();


Console.WriteLine("Build Commands Output :");
Console.WriteLine(stdOut2);
Console.WriteLine(stdErr2);

is there any possible way where i can run msbuild commands from my c# console application?
AnswerRe: Running MSBuild Commands from My C# console application. Pin
Dave Kreskowiak7-Feb-23 6:18
mveDave Kreskowiak7-Feb-23 6:18 
AnswerRe: Running MSBuild Commands from My C# console application. Pin
jschell7-Feb-23 10:10
jschell7-Feb-23 10:10 
GeneralRe: Running MSBuild Commands from My C# console application. Pin
Madhurima Dutta8-Feb-23 5:46
Madhurima Dutta8-Feb-23 5:46 
GeneralRe: Running MSBuild Commands from My C# console application. Pin
jschell8-Feb-23 6:07
jschell8-Feb-23 6:07 
QuestionSystem.InvalidCastException: 'Unable to cast object of type 'System.Collections.Generic.List`1[FirstMVCApplication.Models.Products]' to type 'FirstMVCApplication.Models.Products'.' Pin
Member 136517316-Feb-23 22:41
Member 136517316-Feb-23 22:41 
AnswerRe: System.InvalidCastException: 'Unable to cast object of type 'System.Collections.Generic.List`1[FirstMVCApplication.Models.Products]' to type 'FirstMVCApplication.Models.Products'.' Pin
Eddy Vluggen7-Feb-23 2:13
professionalEddy Vluggen7-Feb-23 2:13 
AnswerRe: System.InvalidCastException: 'Unable to cast object of type 'System.Collections.Generic.List`1[FirstMVCApplication.Models.Products]' to type 'FirstMVCApplication.Models.Products'.' Pin
Gerry Schmitz7-Feb-23 14:26
mveGerry Schmitz7-Feb-23 14:26 
Questionxtendd Pin
PV20235-Feb-23 21:43
PV20235-Feb-23 21:43 
AnswerRe: xtendd Pin
OriginalGriff5-Feb-23 21:44
mveOriginalGriff5-Feb-23 21:44 
GeneralRe: xtendd Pin
PV20235-Feb-23 21:48
PV20235-Feb-23 21:48 
GeneralRe: xtendd Pin
Eddy Vluggen7-Feb-23 2:16
professionalEddy Vluggen7-Feb-23 2:16 
GeneralRe: xtendd Pin
RedDk7-Feb-23 8:05
RedDk7-Feb-23 8:05 
QuestionHow do I take datatable values into postgresql Pin
Member 141039872-Feb-23 9:22
Member 141039872-Feb-23 9:22 
AnswerRe: How do I take datatable values into postgresql Pin
Gerry Schmitz2-Feb-23 10:08
mveGerry Schmitz2-Feb-23 10:08 
GeneralRe: How do I take datatable values into postgresql Pin
jschell3-Feb-23 6:23
jschell3-Feb-23 6:23 
GeneralRe: How do I take datatable values into postgresql Pin
Gerry Schmitz3-Feb-23 8:10
mveGerry Schmitz3-Feb-23 8:10 
AnswerRe: How do I take datatable values into postgresql Pin
Dave Kreskowiak2-Feb-23 10:11
mveDave Kreskowiak2-Feb-23 10:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.